Original Summary

I actually started LazyPromise without knowing much about Effect (<a href="https:&#x2F;&#x2F;www.effect.website&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.effect.website&#x2F;</a>), coming from the world of RxJS and Solid-style signals (my post from last year: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=46321852">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=46321852</a>). 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.

中文概览

中文标题: Show HN:借助生成器/依赖注入,LazyPromise 成为 Effect 的微型替代品

作者从 RxJS 和 Solid 风格信号出发开发 LazyPromise,后受 Effect 启发。它提供自动传播取消和 Effect 风格特性,但 API 基本与原生 Promise 相同。


  • 情报分类:开源项目与落地
  • 分类依据:Show HN 介绍 LazyPromise 库,属开源项目与落地。
  • 信息来源:Hacker News 新项目
  • 发布时间:2026/9/23 04:32:25