Open peterhil opened 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.
Cancelable promise delay can be used instead of debounce and/or throttle to cancel when input changes: https://twitter.com/oliverjumpertz/status/1414510738119528449
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.