Available question text
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.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2715. Timeout Cancellation
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source