Function relay_system::channel

source ·
pub fn channel<I: Interface>(name: &'static str) -> (Addr<I>, Receiver<I>)
Expand description

Creates an unbounded channel for communicating with a Service.

The Addr as the sending part provides public access to the service, while the Receiver should remain internal to the service.