Queue.join

Block until all items in the queue have been gotten and processed.

The count of unfinished tasks goes up whenever an item is added to the queue. The count goes down whenever a consumer calls $(D_PSYMBOL taskDone()) to indicate that the item was retrieved and all work on it is complete. When the count of unfinished tasks drops to zero, $(D_PSYMBOL join()) unblocks.

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

Meta