# async-best-practices > Use Promise Use when optimizing code performance. Performance category skill. - Author: OmniaffixDave - Repository: OmniaffixDave/SessionGuardian - Version: 20260205125233 - Stars: 0 - Forks: 1 - Last Updated: 2026-02-08 - Source: https://github.com/OmniaffixDave/SessionGuardian - Web: https://mule.run/skillshub/@@OmniaffixDave/SessionGuardian~async-best-practices:20260205125233 --- --- name: async-best-practices description: Use Promise Use when optimizing code performance. Performance category skill. metadata: category: Performance priority: high is-built-in: true session-guardian-id: builtin_async_best_practices --- # Async Best Practices Use Promise.all() for independent async operations that can run concurrently. Avoid await inside loops when iterations are independent—collect promises and await them together. Handle errors appropriately with try/catch or .catch(). Don't mix callbacks and promises unnecessarily. Consider Promise.allSettled() when you need results even if some promises fail.