Available question text
Return a time-limited wrapper for an async function that invokes fn with given arguments and resolves with its result if it completes within t milliseconds, or rejects with "Time Limit Exceeded" if the timeout elapses (typically solved by racing fn's promise against a timeout while preserving fn's resolve/reject behavior).
Related questions
Continue with questions that share topics or the same question type.
- Cache With Time Limit
Coding
- 0/1 Knapsack Problem with Time Complexity Optimization
Coding
- Amount of Time for Binary Tree to Be Infected
Coding · Binary Tree · Breadth-First Search · Depth-First Search
- Average Time of Process per Machine
Coding
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 2637. Promise Time Limit
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source