Better HN
topnewbestaskshowjobs
Log inSign up

nickdeis

3 karma · joined Jan 15, 2026 (10mo ago) · 1 submissions

Submissions

comment 10mo ago · link · parent

I built something similar for handling transactions/savepoints in drizzle: https://github.com/nickdeis/drizzle-transaction-context

Other languages like python and golang have similar concepts, but AsyncLocalStorage has a really nice API suited for async programming. It also pairs really nice with drizzle's savepoint implementation since both AsyncLocalStorage and savepoints can be nested.