Comment on You can't cancel a JavaScript promise (except sometimes you can)parentComments−BlueGreenMagick5moI don't think the control flow relies on GC.The control flow stops because statements after `await new Promise(() => {});` will never run.GC is only relied upon to not create a memory leak, but you could argue it's the same for all other objects.
Comments
I don't think the control flow relies on GC.
The control flow stops because statements after `await new Promise(() => {});` will never run.
GC is only relied upon to not create a memory leak, but you could argue it's the same for all other objects.