event_loop

Function event_loop 

Source
pub async fn event_loop<F, Fut>(handler: F) -> Result<()>
where F: FnMut(String) -> Fut + Send + 'static, Fut: Future<Output = Result<()>> + Send + 'static,