timers: introduce setInterval async iterator · nodejs/node@4ebe38b · GitHub
Skip to content

Commit 4ebe38b

Browse files
Linkgorondanielleadams
authored andcommitted
timers: introduce setInterval async iterator
Added setInterval async generator to timers\promises. Utilises async generators to provide an iterator compatible with `for await`. Co-Authored-By: Fabian Cook <hello@fabiancook.dev> fix message PR-URL: #37153 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent bfe0b46 commit 4ebe38b

3 files changed

Lines changed: 327 additions & 13 deletions

File tree

doc/api/timers.md

Lines changed: 32 additions & 0 deletions

lib/timers/promises.js

Lines changed: 57 additions & 1 deletion

0 commit comments

Comments
 (0)