Aborted
Aborted:
object
Defined in: Core/Aborted.ts:24
Type Declaration
Section titled “Type Declaration”is: (
value) =>value is Aborted
Narrows any { kind } discriminated value to Aborted.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”value is Aborted
Aborted.make to construct an Aborted outcome.
Example
Section titled “Example”make: (
reason?) =>Aborted
Creates an Aborted outcome from a cancellation reason.
Engines call this from their own AbortSignal listeners. Use it directly when a
transform or a test needs to represent a cancelled run without a live signal.
Parameters
Section titled “Parameters”reason?
Section titled “reason?”unknown
Returns
Section titled “Returns”Aborted.is to check whether a settled value is a cancellation.