Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
jlffwoymasdf
2y ago
0 comments
Share
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.
0 comments
default
newest
oldest
ben-schaaf
2y ago
Doesn't tokio have a single-threaded runtime where that's not needed?
zackangelo
2y ago
Yes but Send + Sync is required everywhere regardless.
vgatherps
2y ago
This is not true, you can run non-send futures using Tokio:
https://docs.rs/tokio/latest/tokio/task/struct.LocalSet.html
j
/
k
navigate · click thread line to collapse