Overview
- Bug Type:
- Un/poorly handled async promise
- Category:
- Concurrency, Async & Events
Definition
Promises/futures aren't awaited or errors are dropped, causing hidden failures or inconsistent state.
How to fix Un/poorly handled async promise?
Always await/return promises; add centralized rejection handlers; propagate errors; cover with async tests
Symptoms
Observable signs that may indicate Un/poorly handled async promise:
- Unhandled promise rejections in logs/console.
- Hidden failures where downstream steps silently skip.
- UI freezes or inconsistent state after async errors.
Example Errors:
- UnhandledPromiseRejectionWarning
- unhandledrejection event fired
- Promise rejection: TypeError
