pub fn spawn<G: Gate>(listener: TcpListener, gate: Arc<G>) -> Result<Server>
Starts serving listener on a new thread.
listener