Final PR for today: a really nice refactor changing `task::blocking` to `task::spawn_blocking`. And changing the signature too: // current spawn_blocking(async move {/*code*/}); // proposed spawn_blocking(move || /*code*/); Excited!https://github.com/async-rs/async-std/pull/299/files …
-
Show this thread
People pointed out that it was confusing that `task::blocking` took an async block, while it was intended to run non-async code. V. true. Also confusion between `blocking` and `block_on`. Agree on both accounts, so yay for acting on feedback!
1:37 PM - 9 Oct 2019
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.