Throttling<T> constructor

Throttling<T>(
  1. {Duration duration = const Duration(seconds: 1)}
)

Throttling Have method throttle Must be closed with close method

Implementation

Throttling({Duration duration = const Duration(seconds: 1)})
    : assert(!duration.isNegative, 'Duration must be positive'),
      _duration = duration {
  _stateSC.sink.add(ThrottlingStatus.idle);
}