mirror of
https://github.com/async-rs/async-std.git
synced 2025-01-30 17:25:32 +00:00
commit
74dbd3a829
2 changed files with 3 additions and 3 deletions
|
@ -686,9 +686,9 @@ use async_std::prelude::*;
|
|||
use async_std::task;
|
||||
|
||||
task::spawn(async {
|
||||
let x = fibonnacci(1000); // Do expensive work
|
||||
let x = fibonacci(1000); // Do expensive work
|
||||
task::yield_now().await; // Allow other tasks to run
|
||||
x + fibonnacci(100) // Do more work
|
||||
x + fibonacci(100) // Do more work
|
||||
})
|
||||
```
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ pin_project! {
|
|||
///
|
||||
/// This stream is constructed by [`successors`] function
|
||||
///
|
||||
/// [`successors`]: fn.succssors.html
|
||||
/// [`successors`]: fn.successors.html
|
||||
#[cfg(feature = "unstable")]
|
||||
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
|
||||
#[derive(Debug)]
|
||||
|
|
Loading…
Reference in a new issue