You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In short, I noticed while trying to drop a spec-compliant polyfill for ReadableStream's async iteration into Typescript that the types weren't matching up with AsyncIterator. The return method for async generators can accept a promise, rather than a plain value, which is awaited and unwrapped into the return value like so: {done: true, value: resultOfAwaitedPromise}. Whereas, the async iterator corresponding to the webidl spec seems to not do this, instead returning {done: true, value: unawaitedPromise}.