Skuld.Coroutine.Completed (skuld v0.30.0)

View Source

Fiber that finished successfully.

Env semantics

env is the final environment snapshot — scope, accumulated state (Writer logs, State values, etc.) as they were when the computation returned. The scheduler extracts env.state into shared pool state.

Summary

Types

t()

@type t() :: %Skuld.Coroutine.Completed{
  env: Skuld.Comp.Env.t(),
  id: term(),
  result: term()
}