4 ms·
For JavaScript developers expecting to jump over to Rust and be productive now that async/await is stable: I'm pretty sure the state of affairs for async progr
by MuffinFlavored 7y ago
For JavaScript developers expecting to jump over to Rust and be productive now that async/await is stable:
I'm pretty sure the state of affairs for async programming is still a bit "different" in Rust land. Don't you need to spawn async tasks into an executor, etc.?
Coming from JavaScript, the built in event-loop handles all of that. In Rust, the "event loop" so to speak is typically a third party library/package, not something provided by the language/standard itself.
- steveklabnik 7y ago> I'm pretty sure the state of affairs for async programming is still a bit "different" in Rust land. There are some differences, yes. > Don't you need to spawn async tasks into an executor, etc.? Correct, though many executors have added attributes you can tack onto main that do this for you via macro magic, so it'll feel a bit closer to JS.