doc: Fix spawn doc (#3871)
This commit is contained in:
1 parent
83ea89b88c
commit
2e856ecb3b
1 file changed
+1
-1
@@ -120,7 +120,7 @@ pub fn spawn_isomorphic(fut: impl Future<Output = ()> + 'static) -> Task {
|
|||||||
Runtime::with_current_scope(|cx| cx.spawn_isomorphic(fut)).unwrap()
|
Runtime::with_current_scope(|cx| cx.spawn_isomorphic(fut)).unwrap()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Spawns the future but does not return the [`Task`]. This task will automatically be canceled when the component is dropped.
|
/// Spawns the future and returns the [`Task`]. This task will automatically be canceled when the component is dropped.
|
||||||
///
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
/// ```rust
|
/// ```rust
|
||||||
|
|||||||
Reference in new issue
Block a user