Continuum.ChildRef (continuum v0.5.0)

Copy Markdown View Source

Handle for an asynchronously started child workflow.

start_child/3 returns a %Continuum.ChildRef{}; pass it to await_child/1 to suspend until the child terminates and recover its result. The ref is deterministic across replays:

  • child_run_id — the child run's id, derived deterministically from the parent run id, the start command id, and any id: option, so the same parent at the same cursor never starts two children on replay.
  • start_command_id — the command identity of the start_child call site.
  • workflow — the child workflow module.

Summary

Types

t()

@type t() :: %Continuum.ChildRef{
  child_run_id: binary(),
  start_command_id: term(),
  workflow: module()
}