     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17

    //! Future-aware synchronization
    //!
    //! This module, which is modeled after `std::sync`, contains user-space
    //! synchronization tools that work with futures, streams and sinks. In
    //! particular, these synchronizers do *not* block physical OS threads, but
    //! instead work at the task level.
    //!
    //! More information and examples of how to use these synchronization primitives
    //! can be found [online at tokio.rs].
    //!
    //! [online at tokio.rs]: https://tokio.rs/docs/going-deeper-futures/synchronization/

    pub mod oneshot;
    pub mod mpsc;
    mod bilock;

    pub use self::bilock::{BiLock, BiLockGuard, BiLockAcquire, BiLockAcquired};

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)