egomobile/node-queue

Enhance options of enqueue() method

Opened this issue · 1 comments

The enqueue method of Queue class should be enhanced the following way:

  • enqueue(action: Function, dateToExecute?: Date, options?: IQueueEnqueueOptions): dateToExecute, the time when action should be executed
  • enqueue(action: Function, millisecondsBeforeExecute?: number, options?: IQueueEnqueueOptions): millisecondsBeforeExecute, the time in ms to wait, before action should be executed
  • enqueue(action: Function, optionsWithTimeToWaitValue?: IQueueEnqueueOptionsWithTimeBeforeExecute): one of the upper values, submitted via optionsWithTimeToWaitValue object