MyUtilityExtensionStreamWithInitialDelay<T> extension

on

Methods

withInitialDelay(Duration minOperationTime, {Duration threshold = const Duration(milliseconds: 50)}) Stream<T>

Available on Stream<T>, provided by the MyUtilityExtensionStreamWithInitialDelay extension

If the time it takes for the first event to appear is less than minOperationTime, then a Future.delayed is awaited for the remaining time. withInitialDelay only affects the first event of this Stream. The delay also affects any errors of this Stream.