thedesk/app/node_modules/builder-util/out/asyncTaskManager.d.ts

12 lines
412 B
TypeScript
Raw Permalink Normal View History

2019-09-13 00:38:13 +10:00
import { CancellationToken } from "builder-util-runtime";
export declare class AsyncTaskManager {
private readonly cancellationToken;
readonly tasks: Array<Promise<any>>;
private readonly errors;
constructor(cancellationToken: CancellationToken);
add(task: () => Promise<any>): void;
addTask(promise: Promise<any>): void;
cancelTasks(): void;
awaitTasks(): Promise<Array<any>>;
}