1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-27 18:02:58 +01:00

rename method

This commit is contained in:
Nikolay Kim 2019-03-14 20:23:49 -07:00
parent d23dc6f6af
commit b7b76c47e5
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
### Added ### Added
* Allow to run future before server service initialization * `SystemRuntime::on_start()` - allow to run future before server service initialization
## [0.4.0] - 2019-03-12 ## [0.4.0] - 2019-03-12

View File

@ -215,7 +215,7 @@ impl ServiceRuntime {
} }
/// Execute future before services initialization. /// Execute future before services initialization.
pub fn spawn<F>(&mut self, fut: F) pub fn on_start<F>(&mut self, fut: F)
where where
F: Future<Item = (), Error = ()> + 'static, F: Future<Item = (), Error = ()> + 'static,
{ {