fedimint_core::task

Type Alias Cancellable

Source
pub type Cancellable<T> = Result<T, Cancelled>;
Expand description

Operation that can potentially get cancelled returning no result (e.g. program shutdown).

Aliased Type§

enum Cancellable<T> {
    Ok(T),
    Err(Cancelled),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Cancelled)

Contains the error value