with_testnet

Function with_testnet 

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

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