Op
Op<
Args,E,A> =object
Defined in: Core/Op.ts:114
A reusable description of async work — decoupled from execution strategy and lifetime.
Separate concerns:
- What to do: encoded in the
OpviaOp.make - How to execute: chosen at
Op.interprettime (restartable, exclusive, queue, etc.)
An Op never runs on its own. It only executes when passed to Op.interpret, which
attaches a concurrency strategy and returns a Manager that owns the execution.
Example
Section titled “Example”Type Parameters
Section titled “Type Parameters”Args extends readonly unknown[] = readonly unknown[]
E = unknown
A = unknown
Properties
Section titled “Properties”[_opBrand]
Section titled “[_opBrand]”
readonly[_opBrand]:object
Defined in: Core/Op.ts:120
readonly_args: (…args) =>void
Parameters
Section titled “Parameters”…Args
Returns
Section titled “Returns”void
_error
Section titled “_error”
readonly_error: () =>E
Returns
Section titled “Returns”E
_value
Section titled “_value”
readonly_value: () =>A
Returns
Section titled “Returns”A
[toStringTag]?
Section titled “[toStringTag]?”
readonlyoptional[toStringTag]?:string
Defined in: Core/Op.ts:119
readonlyoptionalid?:string
Defined in: Core/Op.ts:118
An optional diagnostic identifier for this operation blueprint.