Type Alias UncertainAsyncOp<T, E>

UncertainAsyncOp<T, E>: AsyncOp<T, E>

Same as an AsyncOp, but allows returning errors in case the operation fails.

Type Parameters

  • T

    Type of the return value. Caller must ensure to provide the valid type.

  • E = string

    The failure type. If the operation fails, this type will be returned.