throttle<T> method
Implementation
ZenWorkerHandle throttle<T>(
ValueNotifier<T> obs,
void Function(T) callback,
Duration duration,
) {
if (duration.isNegative || duration == Duration.zero) {
throw ArgumentError('Throttle duration must be positive');
}
return _createWorker(
() => ZenWorkers.throttle<T>(obs, callback, duration), 'throttle');
}