Overview of Effect core modules
mainThe effect package provides several core modules for building robust applications:
- Effect: The core abstraction for managing side effects, concurrency, and error handling.
- Context: A lightweight dependency injection mechanism for passing services through computations.
- Layer: A system for managing dependencies and modular resource allocation.
- Fiber: Lightweight virtual threads with resource-safe cancellation.
- Stream: An abstraction for asynchronous, event-driven data processing.
- Schedule: A module for defining composable retry and repeat policies.
- Scope: Manages the lifecycle of resources (acquisition and release).
- Schema: A library for defining, validating, and transforming structured data with type-safe encoding/decoding.
In v4, additional functionality like http, rpc, sql, and ai is available under the effect/unstable/* namespaces.