Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

task: Add more tips + links to spawn_blocking docs #4150

Merged
merged 2 commits into from Oct 26, 2021

Commits on Oct 26, 2021

  1. 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.
    cgwalters committed Oct 26, 2021
    Copy the full SHA
    0bacb79 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    1fa2426 View commit details
    Browse the repository at this point in the history