Search
⌘K

Leetcode 2621. Sleep

Implement an asynchronous function sleep(millis) that returns a Promise which resolves after approximately millis milliseconds (minor timing deviations acceptable). Constraint: 1 <= millis <= 1000.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Your account is free and you can post anonymously if you choose.