Skip to content

builder util.Class.AsyncTaskManager

Electron-Builder / builder-util / AsyncTaskManager

Constructors

new AsyncTaskManager()

new AsyncTaskManager(cancellationToken): AsyncTaskManager

Parameters

cancellationToken: CancellationToken

Returns

AsyncTaskManager

Properties

tasks

readonly tasks: Promise<any>[] = []

Methods

add()

add(task): void

Parameters

task

Returns

void


addTask()

addTask(promise): void

Parameters

promise: Promise<any>

Returns

void


awaitTasks()

awaitTasks(): Promise<any[]>

Returns

Promise<any[]>


cancelTasks()

cancelTasks(): void

Returns

void