tasks-mad-queue
v0.0.1
Published
A library that provides queue for async tasks
Downloads
6
Maintainers
Readme
Tasks Mad Queue
// API
public start(): void {
this.influxProcess();
}
public enqueue(func: TasksQueueFuncType): void {
this.validations();
this.enqueueInnerInflux(func);
}
public enqueueAndWait<T>(func: TasksQueueFuncType<T>): Promise<T> {
this.validations();
return this.enqueueInnerAndWait<T>(func);
}
public getConfig(): ITasksQueueConfig {
return this.config;
}
public async wait(): Promise<void> {
await this.currentProcess;
return;
}
public isRunning(): boolean {
return this.isActive;
}