SinkQueueWithCancel

org.apache.pekko.stream.scaladsl.SinkQueueWithCancel
See theSinkQueueWithCancel companion object
trait SinkQueueWithCancel[T] extends SinkQueue[T]

This trait adds cancel support to SinkQueue.

Attributes

Companion
object
Source
Queue.scala
Graph
Supertypes
trait SinkQueue[T]
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def cancel(): Unit

Cancels the stream. This method returns right away without waiting for actual finalizing the stream.

Cancels the stream. This method returns right away without waiting for actual finalizing the stream.

Attributes

Source
Queue.scala

Concrete methods

Implicitly added by QueueOps

Attributes

Source
Queue.scala

Inherited 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

Inherited from:
SinkQueue
Source
Queue.scala

Concrete fields

Implicitly added by QueueOps

Attributes

Source
Queue.scala