DEV Community

Discussion on: Simplify code by promisifying `setTimeout`

darkwiiplayer profile image

The context switching is precisely why I want this. If you're dealing with seconds in the backend but have to constantly switch to thinking in milliseconds for the frontend code, that's mental work I could spend thinking about the actual code.