Enhance options of enqueue() method
Opened this issue · 1 comments
Deleted user commented
The enqueue method of Queue class should be enhanced the following way:
enqueue(action: Function, dateToExecute?: Date, options?: IQueueEnqueueOptions)
:dateToExecute
, the time whenaction
should be executedenqueue(action: Function, millisecondsBeforeExecute?: number, options?: IQueueEnqueueOptions)
:millisecondsBeforeExecute
, the time in ms to wait, beforeaction
should be executedenqueue(action: Function, optionsWithTimeToWaitValue?: IQueueEnqueueOptionsWithTimeBeforeExecute)
: one of the upper values, submitted viaoptionsWithTimeToWaitValue
object
Deleted user commented