mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-27 21:22:57 +01:00
rename method
This commit is contained in:
parent
d23dc6f6af
commit
b7b76c47e5
@ -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
|
||||||
|
@ -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,
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user