/// 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.
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.
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 .
pub fn fork<S, P>(p: P) -> S::Dual
where
    S: Session + 'static,
    P: FnOnce(S) -> Result<(), Box<dyn Error>> + marker::Send + 'static,
{
    fork_with_thread_id(p).1
}
pub fn fork < S , P > ( p : P ) -> S :: Dual where S : Session + ' static , P : FnOnce ( S ) -> Result < ( ) , Box < dyn Error > > + marker :: Send + ' static , { fork_with_thread_id ( p ) . 1 }
Creates a child process, and a session with two dual
endpoints of type `S` and `S::Dual`.
Creates a child process and a session with two dual endpoints of type ` S ` and ` S :: Dual ` .
p
P