vincenv·4 ปีที่แล้ว·discussYou can get that with anyhow [1] by calling unwrap after `.with_context`.[1]: https://docs.rs/anyhow/latest/anyhow/
vincenv·4 ปีที่แล้ว·discussYou could use async_channel [1] it provides async multi-producer multi-consumer.[1]: https://docs.rs/async-channel/latest/async_channel/
vincenv·4 ปีที่แล้ว·discussAnother book I found very helpful is Programming Rust [1], it expands on many concepts in the Rust book, the chapters on closures, iterators, collections, concurrency and async have very good explanations on how things work.[1]: https://www.oreilly.com/library/view/programming-rust-2nd/97...
[1]: https://docs.rs/anyhow/latest/anyhow/