4 ms·
> 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 res
by MrBuddyCasino 3y ago
> 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?
- thinkharderdev 3y agoYou 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.
- yencabulator 3y agoSpec one API for singlethreaded and another for multithreaded executors.