[−][src]Function tarpc_lib::client::channel::spawn
pub async fn spawn<Req, Resp, C>(
config: Config,
transport: C,
server_addr: SocketAddr
) -> Result<Channel<Req, Resp>> where
Req: Send + 'static,
Resp: Send + 'static,
C: Transport<Item = Response<Resp>, SinkItem = ClientMessage<Req>> + Send + 'static,
Spawns a dispatch task on the default executor that manages the lifecycle of requests initiated
by the returned Channel.