DHUStreamFactoryExtensions<T> extension


Stream Factory Extensions

Extensions for Stream factory functions to support safe retries.

on

Methods

retry({int retryCount = 3, Duration delayFactor = const Duration(seconds: 1), bool shouldRetry(Object error)?}) Stream<T>

Available on Stream<T> Function(), provided by the DHUStreamFactoryExtensions extension

Retries the stream created by this factory.