openSubscription

fun openSubscription(): SubscriptionReceiveChannel<E> (source)

Overrides BroadcastChannel.openSubscription

Platform and version requirements: JVM

Subscribes to this BroadcastChannel and returns a channel to receive elements from it. The resulting channel shall be closed to unsubscribe from this broadcast channel.