throttle<T> function
Throttles incoming events by the given duration.
Implementation
EventTransformer<T> throttle<T>(Duration duration) {
return (events, mapper) {
return events.throttleTime(duration).asyncExpand(mapper);
};
}