Back to all skills
Progress4 of 45
AsyncHigh

Defer Await Until Needed

Move `await` operations into the branches where they're actually used to avoid blocking code paths that don't need them.

asyncawaitconditionaloptimization

Code Comparison

Incorrect (blocks both branches):typescript
Correct (only blocks when needed):typescript
Another example (early return optimization):typescript

Why This Matters

Impact: avoids blocking unused code paths. This optimization is classified as HIGH priority for production applications.