with_mainnet

Function with_mainnet 

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

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