mirror of
https://github.com/fafhrd91/actix-net
synced 2025-03-20 18:25:18 +01:00
fixup: fix new_async
doc comment
This commit is contained in:
parent
048314913c
commit
c4f05e033f
@ -57,9 +57,9 @@ impl System {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[allow(clippy::new_ret_no_self)]
|
#[allow(clippy::new_ret_no_self)]
|
||||||
/// Create new system.
|
/// Create new system using provided CurrentThread Handle.
|
||||||
///
|
///
|
||||||
/// This method panics if it can not create tokio runtime
|
/// This method panics if it can not spawn system arbiter
|
||||||
pub fn new_async<T: Into<String>>(name: T, executor: Handle) -> AsyncSystemRunner {
|
pub fn new_async<T: Into<String>>(name: T, executor: Handle) -> AsyncSystemRunner {
|
||||||
Self::builder().name(name).build_async(executor)
|
Self::builder().name(name).build_async(executor)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user