MyUtilityExtensionStreamWithInitialDelay<T> extension
- on
-
- Stream<
T>
- Stream<
Methods
-
withInitialDelay(
Duration minOperationTime, {Duration threshold = const Duration(milliseconds: 50)}) → Stream< T> -
Available on Stream<
If the time it takes for the first event to appear is less thanT> , provided by the MyUtilityExtensionStreamWithInitialDelay extensionminOperationTime
, then a Future.delayed is awaited for the remaining time. withInitialDelay only affects thefirst event
of this Stream. The delay also affects any errors of this Stream.