3 ms·
Cancellation can be implemented with another promise passed into cancelable function as an argument. This way it is easier to see that asynchronous function is
by codedokode 10y ago
Cancellation can be implemented with another promise passed into cancelable function as an argument. This way it is easier to see that asynchronous function is cancellable. And Promise implementation would become simpler.