rulvar API reference / @rulvar/core / createCtx
Function: createCtx()
ts
function createCtx(internals): Ctx<ErrorPolicy>;Defined in: packages/core/src/engine/ctx.ts:628
Creates the per-run Ctx bound to internals. The current scope travels through AsyncLocalStorage so parallel branches and pipeline stages keep one ctx object while journaling under their own scope paths (I3: structure from call-and-return only).
Parameters
| Parameter | Type |
|---|---|
internals | RunInternals |
Returns
Ctx<ErrorPolicy>