Interface CancellationSenderStrategy

interface CancellationSenderStrategy {
    cleanup(id: CancellationId): void;
    dispose(): void;
    enableCancellation(request: RequestMessage): void;
    sendCancellation(
        conn: MessageConnection,
        id: CancellationId,
    ): Promise<void>;
}

Implemented by

Methods

  • Cleanup any cancellation state for the given cancellation id. After this method has been call no cancellation will be sent anymore for the given id.

    Parameters

    Returns void

  • An optional method to dispose the strategy.

    Returns void

  • Hook to enable cancellation for the given request.

    Parameters

    Returns void

  • Send cancellation for the given cancellation id

    Parameters

    Returns Promise<void>