---
url: https://scruple.dev/rules/async/no-serial-independent-work.md
description: Do not run independent awaits in series.
---

# async/no-serial-independent-work

Do not run independent awaits in series.

## What it checks

Independent operations that do not rely on ordering, shared state, transactions, locks, or rate limits should begin together.

## Rule metadata

* Package: `@scruple/async`
* Category: Concurrency
* Tags: await, performance, parallelism
* Default threshold: `0.9`
* Minimum confidence: `0.7`

## Examples

### Reported

```ts
const user = await getUser(id); const flags = await getFlags(id);
```

### Accepted

```ts
const [user, flags] = await Promise.all([getUser(id), getFlags(id)]);
```
