You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of calling next tick, an iterable task would just yield. The task should either return the last value, an array of all the values or void.
/** * Maintains a set of queues, each with their own QueueScheduler to schedule * task execution. */classScheduler{addQueue(name: string,scheduler: QueueScheduler): void;/** * Schedule a task on a named queue. The queue must already exist via a call * to `addQueue`. * * TODO: Accept a CancelToken */scheduleTask<T>(queueName: string,task: TaskFunction<T>): Promise<T>;scheduleTask<T>(queueName: string,task: IterableIterator<T>): Promise<T>;scheduleTask<T>(queueName: string,task: AsyncIterableIterator<T>): Promise<T>;}
The text was updated successfully, but these errors were encountered:
Instead of calling next tick, an iterable task would just
yield
. The task should either return the last value, an array of all the values orvoid
.The text was updated successfully, but these errors were encountered: