3 ms·
tokio is so wide spread now such that Arc<Mutex<T>> is coincidentally the right choice. I'm not saying that's a good thing.
by jlffwoymasdf 3y ago
tokio is so wide spread now such that Arc<Mutex<T>> is coincidentally the right choice.
I'm not saying that's a good thing.
- ben-schaaf 3y agoDoesn't tokio have a single-threaded runtime where that's not needed?
- zackangelo 3y agoYes but Send + Sync is required everywhere regardless.
- vgatherps 3y agoThis is not true, you can run non-send futures using Tokio: https://docs.rs/tokio/latest/tokio/task/struct.LocalSet.html https://docs.rs/tokio/latest/tokio/task/struct.LocalSet.html