Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
jlffwoymasdf
2y ago
0 comments
Save
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
3 comments · 1 top-level
top
newest
oldest
ben-schaaf
2y ago
· 2 in thread
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