async function func() {
const results = []
for await (let item of array) {
const result = await promissProc(item)
results.push(result)
}
}
javascript(js)のループ処理(for文)で同期処理を行う
Last updated at Posted at 2024-09-20
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme