Initial Commit

This commit is contained in:
2026-01-15 21:52:12 +01:00
parent 3ed42cdeb6
commit 9c5b22667c
6699 changed files with 1387815 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
/// <reference types="node" />
import { EventEmitter } from "events";
export declare class CancellationToken extends EventEmitter {
private parentCancelHandler;
private _cancelled;
get cancelled(): boolean;
private _parent;
set parent(value: CancellationToken);
constructor(parent?: CancellationToken);
cancel(): void;
private onCancel;
createPromise<R>(callback: (resolve: (thenableOrResult: R | PromiseLike<R>) => void, reject: (error: Error) => void, onCancel: (callback: () => void) => void) => void): Promise<R>;
private removeParentCancelHandler;
dispose(): void;
}
export declare class CancellationError extends Error {
constructor();
}