Dequeue
A queue that can only be dequeued.
Value members
Abstract methods
Waits until the queue is shutdown. The IO
returned by this method will
not resume until the queue has been shutdown. If the queue is already
shutdown, the IO
will resume right away.
Waits until the queue is shutdown. The IO
returned by this method will
not resume until the queue has been shutdown. If the queue is already
shutdown, the IO
will resume right away.
Interrupts any fibers that are suspended on offer
or take
. Future calls
to offer*
and take*
will be interrupted immediately.
Interrupts any fibers that are suspended on offer
or take
. Future calls
to offer*
and take*
will be interrupted immediately.
Retrieves the size of the queue, which is equal to the number of elements in the queue. This may be negative if fibers are suspended waiting for elements to be added to the queue.
Retrieves the size of the queue, which is equal to the number of elements in the queue. This may be negative if fibers are suspended waiting for elements to be added to the queue.
Removes the oldest value in the queue. If the queue is empty, this will return a computation that resumes when an item has been added to the queue.
Removes the oldest value in the queue. If the queue is empty, this will return a computation that resumes when an item has been added to the queue.
Concrete methods
Takes a number of elements from the queue between the specified minimum and maximum. If there are fewer than the minimum number of elements available, suspends until at least the minimum number of elements have been collected.
Takes a number of elements from the queue between the specified minimum and maximum. If there are fewer than the minimum number of elements available, suspends until at least the minimum number of elements have been collected.
Takes the specified number of elements from the queue. If there are fewer than the specified number of elements available, it suspends until they become available.
Takes the specified number of elements from the queue. If there are fewer than the specified number of elements available, it suspends until they become available.