mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-04 23:11:41 +08:00
存量题库数据更新
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<p>Given an array of asynchronous functions <code>functions</code>, return a new promise <code>promise</code>. Each function in the array accepts no arguments and returns a promise.</p>
|
||||
<p>Given an array of asynchronous functions <code>functions</code>, return a new promise <code>promise</code>. Each function in the array accepts no arguments and returns a promise. All the promises should be executed in parallel.</p>
|
||||
|
||||
<p><code>promise</code> resolves:</p>
|
||||
|
||||
<ul>
|
||||
<li>When all the promises returned from <code>functions</code> were resolved successfully. The resolved value of <code>promise</code> should be an array of all the resolved values of promises in the same order as they were in the <code>functions.</code></li>
|
||||
<li>When all the promises returned from <code>functions</code> were resolved successfully in parallel. The resolved value of <code>promise</code> should be an array of all the resolved values of promises in the same order as they were in the <code>functions</code>. The <code>promise</code> should resolve when all the asynchronous functions in the array have completed execution in parallel.</li>
|
||||
</ul>
|
||||
|
||||
<p><code>promise</code> rejects:</p>
|
||||
@@ -55,6 +55,6 @@ The single function was resolved at 200ms with a value of 5.
|
||||
<p><strong>Constraints:</strong></p>
|
||||
|
||||
<ul>
|
||||
<li><code>functions is an array of functions that returns promises</code></li>
|
||||
<li><code>functions</code> is an array of functions that returns promises</li>
|
||||
<li><code>1 <= functions.length <= 10</code></li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user