Function base::generic_channel::channel

source ·
pub fn channel<T>(
    multiprocess: bool,
) -> Option<(GenericSender<T>, GenericReceiver<T>)>
where T: for<'de> Deserialize<'de> + Serialize,
Expand description

Creates a Servo channel that can select different channel implementations based on multiprocess mode or not. If the scenario doesn’t require message to pass process boundary, a simple crossbeam channel is preferred.