You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 2637-promise-time-limit/README.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
<h2><ahref="https://leetcode.com/problems/promise-time-limit/">2637. Promise Time Limit</a></h2><h3>Easy</h3><hr><div><p>Given an asyncronous function <code>fn</code> and a time <code>t</code> in milliseconds, return a new <strong>time limited</strong> version of the input function.</p>
1
+
<h2><ahref="https://leetcode.com/problems/promise-time-limit/">2637. Promise Time Limit</a></h2><imgsrc="https://img.shields.io/badge/Easy-brightgreen"alt="Easy" /><hr><div><p>Given an asyncronous function <code>fn</code> and a time <code>t</code> in milliseconds, return a new <strong>time limited</strong> version of the input function.</p>
2
2
3
3
<p>A <strong>time limited</strong> function is a function that is identical to the original unless it takes longer than <code>t</code> milliseconds to fullfill. In that case, it will reject with <code>"Time Limit Exceeded"</code>. Note that it should reject with a string, not an <code>Error</code>.</p>
0 commit comments