Search
⌘K

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.

Comments

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