UNPKG

801 BTypeScriptView Raw
1import { RequestMessage } from './messages';
2import { AbstractCancellationTokenSource } from './cancellation';
3import { CancellationId, RequestCancellationReceiverStrategy, CancellationSenderStrategy, MessageConnection } from './connection';
4export declare class SharedArraySenderStrategy implements CancellationSenderStrategy {
5 private readonly buffers;
6 constructor();
7 enableCancellation(request: RequestMessage): void;
8 sendCancellation(_conn: MessageConnection, id: CancellationId): Promise<void>;
9 cleanup(id: CancellationId): void;
10 dispose(): void;
11}
12export declare class SharedArrayReceiverStrategy implements RequestCancellationReceiverStrategy {
13 readonly kind: "request";
14 createCancellationTokenSource(request: RequestMessage): AbstractCancellationTokenSource;
15}