pub async fn with_mainnet<F, T>(task: F) -> Result<T::Output> where
    F: Fn(Worker<Mainnet>) -> T,
    T: Future
Expand description

Run a locally scoped task where a mainnet instanced Worker is supplied.