You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The async-std blog post "stop worrying about async blocking" explains that spawn_blocking is no longer needed, and that developers should simply use spawn instead and let the library decide whether it should keep the thread in the async pool.
If task::spawn is the recommended way to spawn tasks that may block, then users will write code that depends on that, and the design decision becomes something async-std can't revert without introducing bugs in its users. This is all fine (it seems like a good design to me), but non-obvious characteristics covered by async-std's stability guarantees should be documented.
The text was updated successfully, but these errors were encountered:
jimblandy
added a commit
to jimblandy/async-std
that referenced
this issue
Nov 2, 2020
Since this isn't going to be the default behavior, this PR's documentation isn't appropriate. Documentation should be addressed as an integral part of whatever PR does get merged.
The async-std blog post "stop worrying about async blocking" explains that
spawn_blocking
is no longer needed, and that developers should simply usespawn
instead and let the library decide whether it should keep the thread in the async pool.If
task::spawn
is the recommended way to spawn tasks that may block, then users will write code that depends on that, and the design decision becomes something async-std can't revert without introducing bugs in its users. This is all fine (it seems like a good design to me), but non-obvious characteristics covered by async-std's stability guarantees should be documented.The text was updated successfully, but these errors were encountered: