cqrsWorkQueueDispositionCommand()
Creates a CQRS work queue disposition command.
Import
Section titled “Import”import { cqrsWorkQueueDispositionCommand } from "@graphrefly/ts/cqrs/work-queue";Signature
Section titled “Signature”function cqrsWorkQueueDispositionCommand( attempt: CqrsWorkQueueAttempt<TCommand>, outcome: CqrsWorkQueueOutcome, policy?: CqrsWorkQueuePolicy,): WorkQueueCommand<CqrsQueuedCommandPayload<TCommand>>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
attempt | CqrsWorkQueueAttempt<TCommand> | attempt value used by the helper. |
outcome | CqrsWorkQueueOutcome | Outcome value to record or index. |
policy | CqrsWorkQueuePolicy | Policy object used to admit, retry, or route work. |
Returns
Section titled “Returns”The CQRS work queue disposition command result.
Example
Section titled “Example”import { cqrsWorkQueueDispositionCommand } from "@graphrefly/ts/cqrs/work-queue";Source
Section titled “Source”packages/ts/src/cqrs/work-queue.ts