Y
Hacker News
new
|
ask
|
show
|
jobs
by
jlffwoymasdf
924 days 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.
1 comments
ben-schaaf
924 days ago
Doesn't tokio have a single-threaded runtime where that's not needed?
link
zackangelo
924 days ago
Yes but Send + Sync is required everywhere regardless.
link
vgatherps
924 days ago
This is not true, you can run non-send futures using Tokio:
https://docs.rs/tokio/latest/tokio/task/struct.LocalSet.html
link