Function run

Source
pub async fn run<T, F>(
    registration: &Registration,
    fut: impl Fn() -> F + Send + 'static,
) -> Result<()>
where F: Future<Output = Result<T>> + Send + 'static, T: Debug + PartialEq + Eq + TraceRawVcs + Send + 'static,