Trait/Object

polynote.kernel.util

ZTopic

Related Docs: object ZTopic | package util

Permalink

sealed trait ZTopic[-RA, -RB, +EA, +EB, -A, +B] extends AnyRef

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZTopic
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def close(): UIO[Unit]

    Permalink

    Shut down this topic; end-of-stream will be published to all subscribers and this topic's references to them will be removed.

  2. abstract def publish(value: A): ZIO[RA, EA, Unit]

    Permalink

    Publish a value to all the subscribers of this topic.

    Publish a value to all the subscribers of this topic. The returned effect will complete once all subscribers have received the value. If the topic is closed, does nothing (as there are no subscribers)

  3. abstract def subscribe: IO[TopicIsClosed, Subscriber[RB, EB, B]]

    Permalink

    Subscribe to this topic.

    Subscribe to this topic. When the returned effect is evaluated, the subscriber will begin receiving values published thereafter, until the managed value is released. When released, the subscriber will be shut down and removed.

    If this topic has been shut down, fails with ZTopic.TopicIsClosed.

  4. abstract def subscriberCount: UIO[Int]

    Permalink

    Return the current number of subscribers to this topic.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. final def bimap[A1, B1](to: (A1) ⇒ A, from: (B) ⇒ B1): ZTopic[RA, RB, EA, EB, A1, B1]

    Permalink

    Modify the types of both published and emitted values, by providing a function from the new published type to the current published type, and a function from the current emitted type to the new emitted type.

  6. final def bimapM[RA1 <: RA, RB1 <: RB, EA1 >: EA, EB1 >: EB, A1, B1](to: (A1) ⇒ ZIO[RA1, EA1, A], from: (B) ⇒ ZIO[RB1, EB1, B1]): ZTopic[RA1, RB1, EA1, EB1, A1, B1]

    Permalink

    Modify the types of both published and emitted values, by providing an effectful function from the new published type to the current published type, and an effectful function from the current emitted type to the new emitted type.

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def contramap[A1](fn: (A1) ⇒ A): ZTopic[RA, RB, EA, EB, A1, B]

    Permalink

    Modify the type of published value, by providing a function from the new type to the current type.

  9. final def contramapM[RA1 <: RA, EA1 >: EA, A1](fn: (A1) ⇒ ZIO[RA1, EA1, A]): ZTopic[RA1, RB, EA1, EB, A1, B]

    Permalink

    Modify the type of published value, by providing an effectful function from the new type to the current type.

  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def map[B1](fn: (B) ⇒ B1): ZTopic[RA, RB, EA, EB, A, B1]

    Permalink

    Modify the type of emitted value, by providing a function from the current type to the new type.

  17. final def mapM[RB1 <: RB, EB1 >: EB, B1](fn: (B) ⇒ ZIO[RB1, EB1, B1]): ZTopic[RA, RB1, EA, EB1, A, B1]

    Permalink

    Modify the type of emitted value, by providing an effectful function from the current type to the new type.

  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. def publishAll[R <: RA, E >: EA](stream: ZStream[R, E, A]): ZIO[R, E, Unit]

    Permalink
  22. def subscribeManaged: Managed[TopicIsClosed, Subscriber[RB, EB, B]]

    Permalink

    Subscribe to this topic.

    Subscribe to this topic. When the managed value is reserved, the subscriber will begin receiving values published thereafter, until the managed value is released. When released, the subscriber will be shut down and removed.

    If this topic has been shut down, fails with ZTopic.TopicIsClosed.

  23. def subscribeStream: ZStream[RB, EB, B]

    Permalink

    If the ZTopic.Subscriber handle isn't needed, subscribe directly to a stream of published elements.

    If the ZTopic.Subscriber handle isn't needed, subscribe directly to a stream of published elements. If the topic has already been closed, this will be an empty stream.

  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped