async_cell

Module unsync

Source
Expand description

Types for single-threaded and no_std use.

Structsยง

  • An async primitive. Similar to a Cell<Option<T>> but awaitable.
  • Used to clone the value of a cell. Can be constructed directly or with AsyncCell::get.
  • A similar future to Get, but resolves to None when the cell is dropped. Can be constructed directly or with AsyncCell::get_weak.
  • A utility wrapper to set a given AsyncCell<T> when dropped.
  • Used to remove the value of a cell. Can be constructed directly or with AsyncCell::take.
  • A similar future to Take, but resolves to None when the cell is dropped. Can be constructed directly or with AsyncCell::take_weak.