3 ms·
Goroutines allow you to write async code ergonomically. Without those, you'd have to write callbacks, which is very unergonomic. Here's a before and after diff
by ehsanu1 9y ago
Goroutines allow you to write async code ergonomically. Without those, you'd have to write callbacks, which is very unergonomic.
Here's a before and after diff of some prototype async/await usage in Rust: https://github.com/mehcode/shio-rs/commit/8078a34c075bf2f52c0d6287f4ed0e3a912a3f7c#diff-924ded2c751ccd30e8769f459e61a362 https://github.com/mehcode/shio-rs/commit/8078a34c075bf2f52c...