putil-taskqueue
Advanced tools
Comparing version 2.5.0 to 2.5.1
@@ -11,3 +11,3 @@ import {EventEmitter} from 'events'; | ||
export type Task = (done: (e?: Error) => void) => void; | ||
export type AsyncTask = () => Promise<void>; | ||
export type AsyncTask<T = any> = () => Promise<T>; | ||
@@ -26,3 +26,3 @@ export default class TaskQueue extends EventEmitter { | ||
enqueue(task: Task | AsyncTask, toFirst?: boolean): Promise<void>; | ||
enqueue<T>(task: Task | AsyncTask<T>, toFirst?: boolean): Promise<T>; | ||
@@ -29,0 +29,0 @@ } |
{ | ||
"name": "putil-taskqueue", | ||
"description": "Very simple async task queue for Javascript", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"author": "Panates Ltd.", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7240