pub fn network_channel<B: BlockT + 'static>() -> (NetworkChan<B>, NetworkPort<B>) {
	let (network_sender, network_receiver) = channel::unbounded();
	let task_notify = Arc::new(AtomicTask::new());
	let network_port = NetworkPort::new(network_receiver, task_notify.clone());
	let network_chan = NetworkChan::new(network_sender, task_notify);
	(network_chan, network_port)
}
/// Create a NetworkPort/Chan pair.
Create a NetworkPort/Chan pair.
Create a NetworkPort / Chan pair .
pub fn network_channel<B: BlockT + 'static>() -> (NetworkChan<B>, NetworkPort<B>) {
	let (network_sender, network_receiver) = channel::unbounded();
	let task_notify = Arc::new(AtomicTask::new());
	let network_port = NetworkPort::new(network_receiver, task_notify.clone());
	let network_chan = NetworkChan::new(network_sender, task_notify);
	(network_chan, network_port)
}
pub fn network_channel < B : BlockT + ' static > ( ) -> ( NetworkChan < B > , NetworkPort < B > ) { let ( network_sender , network_receiver ) = channel :: unbounded ( ) ; let task_notify = Arc :: new ( AtomicTask :: new ( ) ) ; let network_port = NetworkPort :: new ( network_receiver , task_notify . clone ( ) ) ; let network_chan = NetworkChan :: new ( network_sender , task_notify ) ; ( network_chan , network_port ) }
Create a NetworkPort/Chan pair.
Create a NetworkPort / Chan pair .