Interface Interrupt<TValue>

An interrupt thrown inside a thread.

interface Interrupt<TValue> {
    id?: string;
    ns?: string[];
    resumable?: boolean;
    value?: TValue;
    when?: string & {} | "during";
}

Type Parameters

  • TValue = unknown

Properties

id?: string

The ID of the interrupt.

ns?: string[]

The namespace of the interrupt.

Deprecated

Replaced by interrupt_id

resumable?: boolean

Whether the interrupt can be resumed.

Deprecated

Will be removed in the future.

value?: TValue

The value of the interrupt.

when?: string & {} | "during"

Will be deprecated in the future.

Deprecated

Will be removed in the future.