pub async fn with_mainnet<F, T>(task: F) -> Result<T::Output> where F: Fn(Worker<Mainnet>) -> T, T: Future,
Run a locally scoped task where a mainnet instanced Worker is supplied.
mainnet
Worker