A queue of elements. Operations are all nonblocking in their implementations, but may be 'semantically' blocking. For instance, a queue may have a bound on its size, in which case enqueuing may block (be delayed asynchronously) until there is an offsetting dequeue.
A queue of elements. Operations are all nonblocking in their implementations, but may be 'semantically' blocking. For instance, a queue may have a bound on its size, in which case enqueuing may block (be delayed asynchronously) until there is an offsetting dequeue.
- Companion
- object
Value members
Concrete methods
Inherited methods
Dequeues one A
from this queue. Completes once one is ready.
Dequeues one A
from this queue. Completes once one is ready.
- Inherited from
- Dequeue1
Provides a pipe that converts a stream of batch sizes in to a stream of elements by dequeuing batches of the specified size.
Provides a pipe that converts a stream of batch sizes in to a stream of elements by dequeuing batches of the specified size.
- Inherited from
- Dequeue
Dequeues elements from the queue, ensuring elements are dequeued in chunks not exceeding maxSize
.
Dequeues elements from the queue, ensuring elements are dequeued in chunks not exceeding maxSize
.
- Inherited from
- Dequeue
Dequeues one Chunk[A]
with no more than maxSize
elements. Completes once one is ready.
Dequeues one Chunk[A]
with no more than maxSize
elements. Completes once one is ready.
- Inherited from
- DequeueChunk1
Enqueues each element of the input stream to this queue by
calling enqueue1
on each element.
Enqueues each element of the input stream to this queue by
calling enqueue1
on each element.
- Inherited from
- Enqueue
Enqueues one element to this Queue
.
If the queue is full
this waits until queue has space.
Enqueues one element to this Queue
.
If the queue is full
this waits until queue has space.
This completes after a
has been successfully enqueued to this Queue
- Inherited from
- Enqueue
Offers one element to this Queue
.
Offers one element to this Queue
.
Evaluates to false
if the queue is full, indicating the a
was not queued up.
Evaluates to true
if the a
was queued up successfully.
- Value Params
- a
A
to enqueue
- Inherited from
- Enqueue
Tries to dequeue a single element. Unlike dequeue1
, this method does not semantically
block until a chunk is available - instead, None
is returned immediately.
Tries to dequeue a single element. Unlike dequeue1
, this method does not semantically
block until a chunk is available - instead, None
is returned immediately.
- Inherited from
- Dequeue1
Tries to dequeue a single chunk of no more than max size
elements.
Unlike dequeueChunk1
, this method does not semantically block until a chunk is available -
instead, None
is returned immediately.
Tries to dequeue a single chunk of no more than max size
elements.
Unlike dequeueChunk1
, this method does not semantically block until a chunk is available -
instead, None
is returned immediately.
- Inherited from
- DequeueChunk1