throttleGuaranteeLast<T> function

UnaryFunction<T> throttleGuaranteeLast<T>(
  1. UnaryFunction<T?> delegate,
  2. Duration interval
)

Like throttle, but if the last call to this function is throttled, it will be executed once the throttling period expires, starting a new throttling period.

Implementation

UnaryFunction<T> throttleGuaranteeLast<T>(
        UnaryFunction<T?> delegate, Duration interval) =>
    _throttle(delegate, interval, guaranteeLast: true);