neverthrow library
Classes
-
Err<
T, E> -
Ok<
T, E> -
Result<
T, E> -
ResultAsync<
T, E>
Properties
-
fromFuture
→ ResultAsync<
T, E> Function<T, E>(Future< T> future, E errorFn(Object e)) -
final
-
fromSafeFuture
→ ResultAsync<
T, E> Function<T, E>(Future< T> future) -
final
-
fromThrowable
→ Result<
T, E> Function<T, E>(T fn(), {E errorFn(Object?)?}) -
final
Functions
-
err<
T, E> (E error) → Err< T, E> -
errAsync<
T, E> (E error) → ResultAsync< T, E> -
ok<
T, E> (T value) → Ok< T, E> -
okAsync<
T, E> (T value) → ResultAsync< T, E>