Skip to main content

TaskFuture

Trait TaskFuture 

Source
pub trait TaskFuture<T, E>: Future<Output = Result<T, E>> + Send { }
Expand description

Futures provided to a singleflight Group must produce a Result<T, E> for some T, E. This future must also be Send as it could be spawned as a tokio task.

Implementors§

Source§

impl<T, E, F: Future<Output = Result<T, E>> + Send> TaskFuture<T, E> for F