Skip to content

vue-doctor/performance/async-parallel ​

Use const [a, b] = await Promise.all([fetchA(), fetchB()]) to run independent operations concurrently

PropertyValue
CategoryPerformance
Default Severitywarning
Confidencemedium
FixableNo
Engineoxlint
Sincev1.0.0
Frameworksvue, nuxt
Test filesNot checked (which files)

Why it matters ​

Use const [a, b] = await Promise.all([fetchA(), fetchB()]) to run independent operations concurrently

How to fix ​

Review the finding and update the code according to best practices below.

Agent Guidance ​

Independent awaits run one after another. Start them together with const [a, b] = await Promise.all([fetchA(), fetchB()]); keep sequential awaits only where a later call needs an earlier result, where an auth, rate-limit or validation guard must finish first, or where writes must land in order.


Rule source: vue-doctor/performance/async-parallel

Released under the MIT License.