Skip to main content

ask

Function ask 

Source
pub async fn ask<M: Send + 'static, R: Send + 'static, F>(
    target: &ActorRef<M>,
    build: F,
    timeout: Duration,
) -> Result<R, AskError>
where F: FnOnce(Sender<R>) -> M,