interpret
interpret<
I,E,A,O>(op,options):InterpretResult<I,E,A,O>
Defined in: Core/Op.ts:774
Attaches a concurrency strategy to an Op, returning a Manager.
Strategy is data, not a method name. The S type parameter is narrowed to only
the states reachable for the chosen strategy and options — subscribers cannot
reference states that cannot occur.
Strategies:
once— fires once. Only the firstrun()executes; subsequent calls returnDroppedNilimmediately. State is permanent after completion.restartable— new call cancels the previous (ReplacedNil). Only the latest result matters.exclusive— new calls while in-flight returnDroppedNilimmediately.queue— calls run in submission order.Queuedstate shows position.buffered— 1 in-flight + 1 waiting slot. Newer calls evict the slot (EvictedNil).debounced— waitsmsms of quiet before starting. Earlier calls getEvictedNil.
retry and timeout can be combined with any strategy. Both are applied
internally per run() call — set the policy once, not at every call site.
The timeout wraps the entire retry sequence (one deadline for all attempts).
When retry is present, Retrying is added to the subscriber type.
Type Parameters
Section titled “Type Parameters”I
E
A
O extends AllInterpretOptions<I, E>
Parameters
Section titled “Parameters”Op<I, E, A>
options
Section titled “options”O
Returns
Section titled “Returns”InterpretResult<I, E, A, O>