Module webio::callback

source ·
Expand description

This module defines utilities for translating a callback into asynchronous functions.

Modules

  • This module implements conversion from callbacks to futures for callbacks that are called multiple times, i.e. callbacks of events that occur more than once per callback.
  • This module implements conversion from callbacks to futures for callbacks that are called only once.

Structs

  • An error that might happen when the callback’s future is cancelled.