-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
task: Add more tips + links to
spawn_blocking
docs
I'm working on some code which heavily uses `spawn_blocking` to run synchronous code, and it took me a while to find and understand the relevant APIs and patterns here. First, basically no real world case will spawn a closure that takes no parameters, so change the first example to pass an input value, mutate it, and receive the result. Let's link to the channel blocking APIs, and provide a small example of that too. This also mentions `SyncIoBridge` now.
- Loading branch information
Showing
1 changed file
with
58 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters