[][src]Function tari_pubsub::pubsub_channel

pub fn pubsub_channel<T: Send + Eq, M: Send + Clone>(
    size: usize
) -> (TopicPublisher<T, M>, TopicSubscriptionFactory<T, M>)

Create Topic based Pub-Sub channel which returns the Publisher side of the channel and TopicSubscriptionFactory which can produce multiple subscribers for provided topics.