DEV Community

Discussion on: Where’s the Sleep Function in JavaScript?

lukaszahradnik profile image
Lukáš Zahradník

You are promoting that function as a hacky alternative sleep implementation. It's not. It's not hacky and it's not an alternative.

Why would anyone implement "improvisation" for case that sleep function sleeps for fraction of the desired time.