Click here to Skip to main content
15,867,453 members
Articles / Programming Languages / Javascript

Unexpected Side Effect from async

28 May 2021CPOL3 min read 12K   7   9
Prepending the signature of a function with async produces a brand new Promise with potentially and unexpected side effect
The keyword async always creates a brand new Promise even if the function it prepends returns its own Promise. That leads to potentially and unexpected side effect (maybe also a memory leakage but that is still to prove and any help to verify that is welcome)
We're sorry, but the article you are trying to view was deleted at 30 Jun 2021.

Please go to the Javascript Table of Contents to view the list of available articles in this section.