3 ms·
That’s all of this: https://doc.rust-lang.org/nightly/core/task/ https://doc.rust-lang.org/nightly/core/task/
by steveklabnik 8y ago
That’s all of this: https://doc.rust-lang.org/nightly/core/task/ https://doc.rust-lang.org/nightly/core/task/
- sametmax 8y agoThat's an API. Like asyncio in Python is an API. If you make the event loop swapable without making this API mandatory however, it's never going to be a protocol.
- steveklabnik 8y agoThe api is mandatory; it’s how async/await works.
- sametmax 8y agoSo everybody has to implement a task for any alternative event loop and accept tasks from other implementation ?