PollingWaiter class
A polling implementation of Waiter
since 1.7.0
- Implemented types
Constructors
- PollingWaiter({Duration timeout = const Duration(seconds: 30), Duration interval = const Duration(milliseconds: 100), Clock clock = const DartClock()})
- Constructs a new instance of PollingWaiter
Properties
- clock → Clock
-
Implementation of Clock for time keeping
final
-
delay
↔ Future<
void> Function(Duration duration) -
Implementation of performing a wait for a specified
duration
getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- interval → Duration
-
The duration to wait between predicate checks
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout → Duration
-
The Duration to wait before any predicate to become true
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
until(
String task, FutureOr< bool> isFinished()) → Future<void> -
Waits for
isFinished
to resolvetrue
for the identifiedtask
.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited