JSFiddle - React, Tailwind, and code Playground
by yshrkn
JavaScript
function *readFiles() {
for (let i = 0; i < 100; i++) {
yield readFile(i)
}
}
for (file of readFiles()) {
// 1つずつファイルを処理する.
consume(file)
}
by yshrkn
function *readFiles() {
for (let i = 0; i < 100; i++) {
yield readFile(i)
}
}
for (file of readFiles()) {
// 1つずつファイルを処理する.
consume(file)
}