Skuld.Coroutine.ForeignSuspended (skuld_concurrency v0.32.0)

View Source

Fiber state when a single fiber suspends on a foreign resource.

The FiberPool scheduler collects all ForeignSuspended fibers, extracts their individual ForeignSuspend values, and bundles them into a Coroutine.ForeignSuspensions aggregate to return to the caller.

Summary

Types

t()

@type t() :: %Skuld.Coroutine.ForeignSuspended{
  env: Skuld.Comp.Env.t(),
  id: term(),
  suspend: Skuld.Comp.ForeignSuspend.t()
}