Timeout<T> extension
An extension on Future that adds a convenience method to apply a timeout.
- on
-
- Future<
T>
- Future<
Methods
-
withTimeout(
[Duration duration = const Duration(seconds: 7)]) → Future< T> - Returns the original future but applies a timeout.