nextUpdate property
Future<T>
get
nextUpdate
Waits until the next update completes
Implementation
Future<T> get nextUpdate {
return _nextFrame.isActive
? _nextFrame.future.timeout(5.second, onTimeout: () {
log.warning("Timeout on update - sending current value: $_current");
_nextFrame
..start()
..complete(_current)
..reset();
return _current!;
})
: Future.value(_current);
}