Shut down this topic; end-of-stream will be published to all subscribers and this topic's references to them will be removed.
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)
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.
Return the current number of subscribers to this topic.
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.
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.
Modify the type of published value, by providing a function from the new type to the current type.
Modify the type of published value, by providing an effectful function from the new type to the current type.
Modify the type of emitted value, by providing a function from the current type to the new type.
Modify the type of emitted value, by providing an effectful function from the current type to the new type.
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.
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.