`await null` to stay in the same tick?
Mark S. Miller
erights at google.com
Sun Feb 7 21:51:36 UTC 2016
On Sun, Feb 7, 2016 at 1:38 PM, /#!/JoePea <joe at trusktr.io> wrote:
> I'm not sure where's the best place to ask, but if I
> await null
> in an async function does that guarantee that the following code will
> execute immediately (control flow will not go anywhere else)?
Absolutely not. The continuation of an await always runs in another
turn/job, i.e., it always starts with an empty stack. between the awaiting
turn and the resumption at the await point, other jobs will interleave.
> - Joe
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss