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