node-find-files
node-find-files copied to clipboard
How to cancel an existing filereader?
I'm using this library hooked up to a text search field, which calls filereader.startSearch()
every time the string changes, so as you type in 'bat', it would start a search for 'b', 'ba', and 'bat'. This results in multiple processes running at once, all but the last of which are out of date, so I was wondering if there's a method to stop any existing searches before starting a new one?