peterhil / spellbook

Spellbook is a WebExtension to easily add new bookmarks to correct categories
Mozilla Public License 2.0
29 stars 2 forks source link

Cancel promises on category search #57

Open peterhil opened 3 years ago

peterhil commented 3 years ago

Cancel promises with something like AbortController for fetch.

Bluebird offers cancellable promises and there are other options.

For custom implementation the structure of Promise cancellation could be something like delayedExecution even though this handles callback execution.

peterhil commented 3 years ago

Cancelable promise delay can be used instead of debounce and/or throttle to cancel when input changes: https://twitter.com/oliverjumpertz/status/1414510738119528449