pub fn spawn_client_detached<T, P, H>(
client_end: ClientEnd<T, P>,
handler: H,
) -> ClientSender<T, P>where
T: Transport + 'static,
P: ClientProtocol<T, H> + 'static,
H: Send + 'static,
Expand description
Creates a Client
from the given ClientEnd
and spawns it on the current fuchsia-async
executor.
The spawned client will handle any incoming events with handler
.
Returns a ClientSender
for the spawned client.