dijkstra-backend-cloudron/node_modules/tarn/lib/PendingOperation.d.ts

12 lines
338 B
TypeScript
Raw Normal View History

import { Deferred } from './utils';
export declare class PendingOperation<T> {
protected timeoutMillis: number;
possibleTimeoutCause: Error | null;
promise: Promise<T>;
protected deferred: Deferred<T>;
constructor(timeoutMillis: number);
abort(): void;
reject(err: Error): void;
resolve(value: T): void;
}