DEV Community

loading...

Discussion on: Simplify code by promisifying `setTimeout`

Collapse
markwitt_me profile image
Mark Witt

Change setTimeout(resolve, time) to setTimeout(resolve, time * 1000)

Collapse
darkwiiplayer profile image
DarkWiiPlayer

Yes, thanks but I was already well aware of how to convert milliseconds to seconds ;D