DHUFutureExtensions<T> extension
Extensions for Future to add functionality like timeouts and minimum waits.
- on
-
- Future<
T>
- Future<
Methods
-
minWait(
Duration duration) → Future< T> -
Available on Future<
Ensures the future takes at leastT> , provided by the DHUFutureExtensions extensiondurationto complete. -
timeoutOrNull(
Duration timeout) → Future< T?> -
Available on Future<
Returns the result of the future if it completes withinT> , provided by the DHUFutureExtensions extensiontimeout, otherwise returnsnull.