Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/gauntlet/imports/happy_dom.ts>AsyncTaskManager

Work-in-progress front-end tool which does put a smile on my face
Latest
class AsyncTaskManager
Re-export
import { AsyncTaskManager } from "https://deno.land/x/gauntlet@v0.0.9/imports/happy_dom.ts";

Handles async tasks.

Properties

private
queue
private
tasks

Methods

cancelAllTasks(error?: Error): void

Cancels all tasks.

endTask(type: AsyncTaskTypeEnum, error?: Error): void

Ends an async task.

endTimer(id?: NodeJS.Timeout): void

Ends a timer.

getRunningCount(type: AsyncTaskTypeEnum): number

Returns the amount of running tasks by type.

startTask(type: AsyncTaskTypeEnum): void

Starts an async task.

startTimer(id?: NodeJS.Timeout): void

Starts a timer.

whenComplete(): Promise<void>

Returns a promise that is fulfilled when async tasks are complete. This method is not part of the HTML standard.