W

With generators/DI

Lazy promise library with generators, type-safe errors, and dependency injection

Visit With generators/DI ↗ link: rel="ugc noopener"

LazyPromise is a lightweight alternative to Effect, built around generator syntax and lazy evaluation. It provides type-safe error handling and dependency injection patterns inspired by Effect, while maintaining a minimal footprint.

The library features auto-propagating cancellation and combines lazy promise semantics with functional programming patterns. It draws from RxJS and Solid-style signals, offering developers an alternative approach to async composition and error management.

Discussion