Tôi đã xây dựng utility Node.js **safe-timeouts** giúp áp dụng deadline cho toàn bộ luồng async, không chỉ một promise. Sử dụng AsyncLocalStorage để chia sẻ deadline, AbortController để hủy công việc, hỗ trợ Axios. Giúp tránh request treo, Axios chạy sau timeout, và rắc rối khi dùng Promise.race. Mở repo trên GitHub/NPM, mong nhận góp ý. #NodeJS #async #timeout #JavaScript #LậpTrình #CôngCụ













