send_message_on

Function send_message_on 

Source
pub fn send_message_on<T, U>(
    handle: GenServerHandle<T>,
    future: U,
    message: T::CastMsg,
) -> JoinHandle<()>
where T: GenServer, U: Future + Send + 'static, <U as Future>::Output: Send,
Expand description

Spawns a task that awaits on a future and sends a message to a GenServer on completion. This function returns a handle to the spawned task.