Show HN: With generators/DI, LazyPromise has become a tiny alternative to Effect

I actually started LazyPromise without knowing much about Effect (https://www.effect.website/), coming from the world of RxJS and Solid-style signals (my post from last year: https://news.ycombinator.com/item?id=46321852). But Effect is a lazy promise too, and showed how useful generator syntax, type-safe errors and dependency injection can be. So there you go: a version of promise with auto-propagating cancellation and Effect-style features, but essentially the same API as the native promise.
1 points ivan7237d 1 month ago 1 comments

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton