SafeFuturePod<T> constructor

SafeFuturePod<T>(
  1. FutureOr<T> future
)

Creates a SafeFuturePod with the specified future.

Implementation

SafeFuturePod(FutureOr<T> future) : super(const None()) {
  consec(
    future,
    (e) => _set(Some(Ok(e))),
    onError: (e) => _set(Some(Err(e))),
  );
}