Skip to main content
1

🔁 Retry & Time Control

Future<T>
int
required
The total number of attempts to make before giving up.
Retries the execution of this Future a specified number of times upon failure. Essential for handling transient network errors.
Future<T>
Duration
required
The maximum duration to wait for the Future to complete.
T
required
The value to return if the Future times out.
Sets a timeout and provides a fallbackValue to return if the Future fails to complete in time.
Future<T>
Duration
required
The duration to wait before execution begins.
Waits for a specified delay before starting the execution of this Future. Useful for simulating network latency in dev/testing.
2

🔍 Internal Status

bool
Checks if the Future has completed (either successfully or with an error). Note: This method starts the Future execution if it hasn’t begun.
Futures
Completer<T>
Wraps this Future inside a Completer. An internal utility for managing Future state within other asynchronous flows.
Futures