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

rt: rename some confusing internal variables/fns #5151

Merged
merged 1 commit into from Oct 31, 2022
Merged

Commits on Oct 31, 2022

  1. rt: rename some confusing internal variables/fns

    This patch does some internal renames to hopefully remove some
    confusion.
    
    * `allow_blocking` is renamed to `allow_block_in_place` to indicate that
      the variable only impacts the `block_in_place()` function.
    
    * `context::try_enter` is renamed to `context::try_set_current` to
      disambiguate between the various "enter" functions. This function only
      sets the runtime handle used by Tokio's public APIs. Entering a runtime
      is a separate operation.  # Please enter the commit message for your
      changes.
    
    * `scheduler::Handle::enter()` is removed in order to consolidate
      methods that set the current context.
    carllerche committed Oct 31, 2022
    Configuration menu
    Copy the full SHA
    56d7094 View commit details
    Browse the repository at this point in the history