A safe pattern for Transactions in Promise-based APIs | Hacker News Reader