lib.rs |
Asynchronous channels.
Like threads, concurrent tasks sometimes need to communicate with each
other. This module contains two basic abstractions for doing so:
- [oneshot], a way of sending a single value from one task to another.
- [mpsc], a multi-producer, single-consumer channel for sending values
between tasks, analogous to the similarly-named structure in the standard
library.
All items are only available when the `std` or `alloc` feature of this
library is activated, and it is activated by default. |
1224 |
lock.rs |
A "mutex" which only supports `try_lock`
As a futures library the eventual call to an event loop should be the only
thing that ever blocks, so this is assisted with a fast user-space
implementation of a lock that can only have a `try_lock` operation. |
3148 |
mpsc |
|
|
oneshot.rs |
A channel for sending a single message between asynchronous tasks.
This is a single-producer, single-consumer channel. |
17931 |