effect-patterns-concurrency
CommunityEffect-TS concurrency patterns in one kit.
System Documentation
What problem does it solve?
This Skill provides a curated set of Effect-TS concurrency patterns to help developers design robust, scalable, and maintainable concurrent applications. It tackles the complexity of coordinating many fibers, controlling resource usage, and reacting to asynchronous events.
Core Features & Use Cases
- Race and timeout patterns for fastest result and deadline enforcement
- Semaphore-based rate limiting to cap concurrent tasks
- Shared state coordination with Ref and atomic updates
- Parallel work with Effect.all and forEach using controlled concurrency
- Fan-out/fan-in and barrier synchronization with Latch
- Event distribution via PubSub and robust producer-consumer pipelines with Queue
- Lifecycle and background task patterns using runFork, Scope, and graceful shutdown
Quick Start
Run a minimal script that imports Effect and uses Effect.race to compare two tasks, then applies a bounded concurrency pattern to limit parallel executions. This demonstrates the core primitives of the concurrency patterns in this skill and lets you tweak latency and concurrency to observe behavior.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: effect-patterns-concurrency Download link: https://github.com/PaulJPhilp/EffectPatterns/archive/main.zip#effect-patterns-concurrency Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.