Search
⌘K

Leetcode 2715. Timeout Cancellation

Return a cancel function for a delayed call: schedule fn(...args) to run after t milliseconds, but if the returned cancel function is invoked before that delay elapses it cancels the scheduled execution. The test harness may call the cancel function after some cancelTimeMs to determine whether fn ran or was cancelled.


Question Timeline

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

Comments

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