All function calls will be ignored when user has changed input.
function search(query, res) { res.add({ id: 'temp', title: 'Fetching...', desc: 'Please wait a second' }); setTimeout(() => res.remove('temp'), 1000); }