SafeFuturePod<T> constructor
SafeFuturePod<T> (
- 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))),
);
}