pub fn create_with_worker(ctx: &Context, profile: &Address) -> Result<Self> {
        let address: Address = random();

        debug!("Starting ProfileSync at {}", &address);

        let ctx = block_future(
            &ctx.runtime(),
            async move { ctx.new_context(address).await },
        )?;

        Ok(Self {
            ctx,
            profile_worker_address: profile.clone(),
        })
    }
/// Create and start a new Vault using Worker.
Create and start a new Vault using Worker.
Create and start a new Vault using Worker .
pub fn create_with_worker(ctx: &Context, profile: &Address) -> Result<Self> {
        let address: Address = random();
        debug!("Starting ProfileSync at {}", &address);
        let ctx = block_future(
            &ctx.runtime(),
            async move { ctx.new_context(address).await },
        )?;
        Ok(Self {
            ctx,
            profile_worker_address: profile.clone(),
        })
    }
pub fn create_with_worker ( ctx : & Context , profile : & Address ) -> Result < Self > { let address : Address = random ( ) ; debug ! ( " " address ) ; let ctx = block_future ( & ctx . runtime ( ) , async move { ctx . new_context ( address ) . await } , ) ? ; Ok ( Self { ctx , profile_worker_address : profile . clone ( ) , } ) }
Create and start a new Vault using Worker.
Create and start a new Vault using Worker .
ctx
&Context
profile
&Address
ctx
&Context
profile
&Address