3 ms·
Days before I'd prefer manipulating between threads manually, because I used to do it for years. But as it goes much mature the async-await especially with sta
by tison 3y ago
Days before I'd prefer manipulating between threads manually, because I used to do it for years.
But as it goes much mature the async-await especially with stackless coroutine implementation, writing in async-await is more pleasure than handling threads.
Handmade futures can have some pitfalls, like this blog wrote: https://blog.waynest.com/2022/12/async-cancellation/ https://blog.waynest.com/2022/12/async-cancellation/
However, I don't like Rust's trend of making global, implicit async runtime, especially with #[xxx:main]. Runtime should be specified clearly, like Netty channel must explicitly bind to an EventLoopGroup. And Java's CompletableFuture without specifying a concrete executor causes many issues already.