pub fn new( services: Vec<ServiceID> ) -> Self
	{
		Self
		{
			services                                            ,
			subscribers: Arc::new(Mutex::new( HashMap::new() )) ,
			rt_sub     : None                                   ,
			rt_unsub   : None                                   ,
		}
	}
/// Create a new PubSub.
/// The id parameter is the id of the address for this actor. From [`Identify::id()`].
/// It's used for debugging logging so you can identify logged errors as coming from this actor.
//
Create a new PubSub.
The id parameter is the id of the address for this actor.
Create a new PubSub . The id parameter is the id of the address for this actor .
pub fn new( services: Vec<ServiceID> ) -> Self
	{
		Self
		{
			services                                            ,
			subscribers: Arc::new(Mutex::new( HashMap::new() )) ,
			rt_sub     : None                                   ,
			rt_unsub   : None                                   ,
		}
	}
pub fn new ( services : Vec < ServiceID > ) -> Self { Self { services , subscribers : Arc :: new ( Mutex :: new ( HashMap :: new ( ) ) ) , rt_sub : None , rt_unsub : None , } }
Create a new PubSub.
Create a new PubSub .
services
Vec<ServiceID>
services
Vec<ServiceID>