pub async fn run_with_cancellable<F, R>( f: F, cancellable: &Cancellable, ) -> Result<R>where F: Future<Output = Result<R>>,
Call a faillible future, while monitoring cancellable and return an error if cancelled.
cancellable