MCPcopy
hub / github.com/vitejs/vite / asyncGenerator

Function asyncGenerator

playground/legacy/main.js:39–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38// async generator
39async function* asyncGenerator() {
40 for (let i = 0; i < 3; i++) {
41 await new Promise((resolve) => setTimeout(resolve, 10))
42 yield i
43 }
44}
45;(async () => {
46 const result = []
47 for await (const i of asyncGenerator()) {

Callers 1

main.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected