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

> An inconvenient truth about async Rust is that libraries still need to be written against individual runtimes.

If there was a common standard, how do you resolve the additional need of sync/send+static for multithreaded executors?



You don't. Anything that can be sent between threads needs to be `Send` and anything shared between threads needs to be `Sync`. This is really important invariant that the rust compiler provides.


Spec one API for singlethreaded and another for multithreaded executors.




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

Search: