examples-futures
examples-futures copied to clipboard
Small examples to explain Futures, Waker, Tasks in Rust
Results
2
examples-futures issues
Sort by
recently updated
recently updated
newest added
That can be produced when main drop reactor early than in threads. e.g ``` reactor.lock().map(|mut r: MutexGuard| r.wake(id)).unwrap(); thread::sleep(Duration::from_secs(6)); drop(reactor); ``` and ``` block_on(mainfut); drop(reactor); thread::sleep(Duration::from_secs(12)); ```
Hi! Thank you for your good examples of Futures of Rust. I wanna read the book "[Futures Explained in 200 lines of Rust](https://github.com/cfsamson/books-futures-explained)", but a link of the book is...