Function mpstthree::binary::fork::fork

source ·
pub fn fork<S, P>(p: P) -> S::Dual
where S: Session + 'static, P: FnOnce(S) -> Result<(), Box<dyn Error>> + Send + 'static,
Expand description

Creates a child process, and a session with two dual endpoints of type S and S::Dual. The first endpoint is given to the child process. Returns the second endpoint.