What problem does it solve?
This reference provides a comprehensive guide to understanding and applying the Effect library's core concepts, types, and primitives for building safe, composable, and concurrent functional code in TypeScript.
Core Features & Use Cases
- Immutability guidelines and type-safe patterns for Effect-based code.
- Detailed coverage of Effect.fn, Effect.gen, and Effect.Service usage, along with Context.Tag and Data.Class.
- Practical guidance on concurrency primitives (Deferred, Ref, Semaphore, Latch, Queue) and data modeling (Schema, Exit, Cause) plus Stream integration.
- Real-world use cases like composing robust effect pipelines, fault-tolerant services, and scalable data flows.
Quick Start
Create a simple effect that logs a message and then composes it with another effect to demonstrate basic usage.