Crate one_for_one

source ·

Structs§

  • Supervisor implements a supervision tree where all children get terminated on interrupt but each die on its own when it’s their own trauma.

Functions§

  • Gets a handle on this coode’s Supervisor.
  • A future that completes when the supervision tree is interrupted. Akin to Go’s <-ctx.Done() chan recv.
  • Returns supervision state immediately
  • Listens to OS signals for ever. Completes on the first one received amon:
  • Spawn starts a supervised task, calling spawn.
  • Spawn starts a supervised task, calling spawn_blocking.
  • Scopes (async) code that needs supervision.
  • Scopes code that needs supervision.
  • A future that triggers the interruption or termination of the supervision tree. Completes when all children are confirmed dead.