Consistent Async Patterns

Prefer async/await over Use when maintaining consistent code style. Style category skill.

majiayu000 Updated 567 repo stars

File contents

Consistent Async Patterns

Prefer async/await over .then() chains for readability. Don't mix callbacks with promises unless interfacing with legacy APIs. Use promisify for callback-based APIs. Keep async functions async—don't return plain values then. Handle errors with try/catch in async functions. Mark functions as async only when they use await or return promises.

majiayu000/claude-skill-registry-data/tree/main/development/consistent-async-patterns-omniaffix-dave-sessionguardian commit ba7ef7e9f8

Frequently asked questions

npx skillmds@latest add majiayu000/consistent-async-patterns