debounce<T> function
Debounces incoming events by the given duration.
Implementation
EventTransformer<T> debounce<T>(Duration duration) {
return (events, mapper) {
return events.debounceTime(duration).asyncExpand(mapper);
};
}