cancel abstract method

void cancel()

Cancels the queue.

Any unprocessed items will be completed with a QueueCancelledException. Subsequent calls to add will also throw a QueueCancelledException.

Implementation

void cancel();