Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's not too hard to do tokio without Send/Sync futures. See the example in https://docs.rs/tokio/latest/tokio/task/struct.LocalSet.html... It's kind of annoying that the current_thread flavor of the executor doesn't automatically enter a LocalSet and make spawn_local work out of the box but it's easy enough to do at the beginning of your program.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: