Removes all available elements from this queue and adds them
to the given collection. This operation may be more
efficient than repeatedly polling this queue.
- (void)drainTo:(NSMutableArray *)array
Discussion
Removes all available elements from this queue and adds them
to the given collection. This operation may be more
efficient than repeatedly polling this queue.
Declared In
BlockingQueue.h