Subscribe

trait Subscribe[F <: ([_$2] =>> Any), A, Selector] extends Subscribe[F, A, Selector]
trait Subscribe[F, A, Selector]
class Object
trait Matchable
class Any
trait PubSub[F, I, O, Selector]

Value members

Inherited methods

def subscribe(selector: Selector): F[Boolean]
Creates a subscription for the supplied selector.
If the subscription is not supported or not successful, this yields to false.
Value Params
selector
selector describing which A to receive
Inhertied from
Subscribe
def unsubscribe(selector: Selector): F[Unit]
Cancels a subscription previously registered with subscribe.
Must be invoked if the subscriber will no longer consume elements.
Value Params
selector
selector to unsubscribe
Inhertied from
Subscribe
def get(selector: Selector): F[A]
Gets elements satisfying the selector, yielding when such an element is available.
Value Params
selector
selector describing which A to receive
Inhertied from
Subscribe
def getStream(selector: Selector): Stream[F, A]
A variant of get, that instead of returning one element will return multiple elements
in form of stream.
Value Params
selector
selector describing which A to receive
Inhertied from
Subscribe
def tryGet(selector: Selector): F[Option[A]]
Like get, but instead of semantically blocking for a matching element, returns immediately
with None if such an element is not available.
Value Params
selector
selector describing which A to receive
Inhertied from
Subscribe