Leetcode 2637. Promise Time Limit
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).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.