SinkQueue

org.apache.pekko.stream.scaladsl.SinkQueue
trait SinkQueue[T]

This trait allows to have a queue as a sink for a stream. A SinkQueue pulls data from a stream with a backpressure mechanism.

Attributes

Source
Queue.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def pull(): Future[Option[T]]

Pulls elements from the stream and returns a Future that:

Pulls elements from the stream and returns a Future that:

  • fails if the stream is failed
  • completes with None in case the stream is completed
  • completes with Some(element) in case the next element is available from stream.

Attributes

Source
Queue.scala