I have a method like this:

```
    private async sendToAll(clients) {
        for(const client of clients) {
            this.send(client, message);
            await true; // What do to put here to make rest of app execute?
        }
    }

```

It is a method which loops through a large array doing a process. What I would like to do is make it so after each iteration of the loop, the rest of the application runs through a cycle. I would image I just put 'await' and then it would do as expected. But that doesn't work. 'await true' doesn't work either.

Unity C# uses this technique a lot with coroutines. The command you use is 'yield return null', basically pauses the executing of a async method, lets the main thread run a cycle through the rest of the app, then comes back to the async method where it left off.

How do I do this in js?