Sync

trait Sync[-A] extends Observer[A]

An Observer.Sync is an Observer that signals demand to upstream synchronously (i.e. the upstream observable doesn't need to wait on a Future in order to decide whether to send the next event or not).

An Observer.Sync is an Observer that signals demand to upstream synchronously (i.e. the upstream observable doesn't need to wait on a Future in order to decide whether to send the next event or not).

Can be used for optimizations.

trait Observer[A]
trait Serializable
class Object
trait Matchable
class Any
trait Sync[A]
class ConcurrentSubject[I, O]

Value members

Abstract methods

def onNext(elem: A): Ack

Returns either a Continue or a Stop, in response to an elem event being received.

Returns either a Continue or a Stop, in response to an elem event being received.

Inherited methods

def onComplete(): Unit
Inherited from
Observer
def onError(ex: Throwable): Unit
Inherited from
Observer