Await yields to the event loop unconditionally. This is useful for
spreading CPU-bound work across multiple events. You can explicitly await
conditionally.

```
if (guard) { await guard; }
```

On Sun, Feb 7, 2016 at 1:39 PM /#!/JoePea <[email protected]> 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)?
>
> - Joe
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to