ZManagedTHubSyntax

zio.managed.`package`.ZManagedTHubSyntax
final implicit class ZManagedTHubSyntax[A](self: THub[A]) extends AnyVal

Attributes

Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

final def subscribeManaged(implicit trace: Trace): ZManaged[Any, Nothing, TDequeue[A]]

Subscribes to receive messages from the hub. The resulting subscription can be evaluated multiple times within the scope of the managed to take a message from the hub each time.

Subscribes to receive messages from the hub. The resulting subscription can be evaluated multiple times within the scope of the managed to take a message from the hub each time.

Attributes