pub fn pubsub_channel_with_id<T: Send + Eq, M: Send + Clone>(
    size: usize,
    receiver_id: usize
) -> (TopicPublisher<T, M>, TopicSubscriptionFactory<T, M>)
Expand description

Create Topic based Pub-Sub channel which returns the Publisher side of the channel and TopicSubscriptionFactory which can produce multiple subscribers for provided topics. The initial receiver id is required and used to label the subscribers, which makes debugging simpler.