thedesk/app/node_modules/builder-util/out/asyncTaskManager.d.ts
2019-09-12 23:38:13 +09:00

12 lines
412 B
TypeScript

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>>;
}