Function sesh::fork [−][src]
pub fn fork<S, P>(p: P) -> S::Dual where
S: Session + 'static,
P: FnOnce(S) -> Result<(), Box<dyn Error>> + Send + 'static,
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.