mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
runtime: fix typo in shutdown_background docs (#4829)
This commit is contained in:
@@ -576,7 +576,7 @@ cfg_rt! {
|
|||||||
/// may result in a resource leak (in that any blocking tasks are still running until they
|
/// may result in a resource leak (in that any blocking tasks are still running until they
|
||||||
/// return.
|
/// return.
|
||||||
///
|
///
|
||||||
/// This function is equivalent to calling `shutdown_timeout(Duration::of_nanos(0))`.
|
/// This function is equivalent to calling `shutdown_timeout(Duration::from_nanos(0))`.
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// use tokio::runtime::Runtime;
|
/// use tokio::runtime::Runtime;
|
||||||
|
|||||||
Reference in New Issue
Block a user