1 | import { RequestMessage } from './messages';
|
2 | import { AbstractCancellationTokenSource } from './cancellation';
|
3 | import { CancellationId, RequestCancellationReceiverStrategy, CancellationSenderStrategy, MessageConnection } from './connection';
|
4 | export 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 | }
|
12 | export declare class SharedArrayReceiverStrategy implements RequestCancellationReceiverStrategy {
|
13 | readonly kind: "request";
|
14 | createCancellationTokenSource(request: RequestMessage): AbstractCancellationTokenSource;
|
15 | }
|