Queue.taskDone

Indicate that a formerly enqueued task is complete.

Used by queue consumers. For each $(D_PSYMBOL get()) used to fetch a task, a subsequent call to $(D_PSYMBOL taskDone()) tells the queue that the processing on the task is complete.

If a $(D_PSYMBOL join()) is currently blocking, it will resume when all items have been processed (meaning that a $(D_PSYMBOL taskDone()) call was received for every item that had been $(D_PSYMBOL put()) into the queue).

Throws $(D_PSYMBOL Exception) if called more times than there were items placed in the queue.

class Queue(T, size_t maxSize = 0)
void
taskDone
()

Meta