async fn create_and_run<F>(f: F)
    where
        F: FnOnce(&Context<Self>) -> Self + Send,
    {
        let mut context = Context::new();
        let this = f(&mut context);
        context.run(this).await;
    }
/// Alternative to `run` function that should be used if an actor
/// needs access to the [`Context`] object to be created (e.g. to
/// know its own address).
Alternative to `run` function that should be used if an actor
needs access to the [`Context`] object to be created .
Alternative to ` run ` function that should be used if an actor needs access to the [ ` Context ` ] object to be created .
async fn create_and_run<F>(f: F)
    where
        F: FnOnce(&Context<Self>) -> Self + Send,
    {
        let mut context = Context::new();
        let this = f(&mut context);
        context.run(this).await;
    }
async fn create_and_run < F > ( f : F ) where F : FnOnce ( & Context < Self > ) -> Self + Send , { let mut context = Context :: new ( ) ; let this = f ( & mut context ) ; context . run ( this ) . await ; }
Alternative to `run` function that should be used if an actor
needs access to the [`Context`] object to be created (e.g.
Alternative to ` run ` function that should be used if an actor needs access to the [ ` Context ` ] object to be created ( e . g .
f
F
f
F