Function ethers_providers::maybe [−][src]
pub async fn maybe<F, T, E>(item: Option<T>, f: F) -> Result<T, E> where
F: Future<Output = Result<T, E>>, Expand description
Calls the future if item is None, otherwise returns a futures::ok