The await keyword runs other tasks only when the Promise function performs a blocking operation.
This, to yield to other tasks, use the following idiom:
await new Promise((resolve)=>setImmediate(resolve))
JavaScript's unrelated yield operator is for emitting data from generator functions. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/yield.