Open
Description
The example here uses throttle
var input = document.getElementById('input');
var dictionarySuggest = Rx.Observable.fromEvent(input, 'keyup')
.map(() => input.value)
.filter(text => !!text)
.distinctUntilChanged()
.throttle(250)
.flatMapLatest(searchWikipedia)
.subscribe(
results => {
list = [];
list.concat(results.map(createItem));
},
err => logError(err)
);
In my understanding, throttle will potentially ignore the last keyup event. Is this what we wanted?
Metadata
Metadata
Assignees
Labels
No labels