effect-patterns-concurrency

Community

Effect-TS concurrency patterns in one kit.

AuthorPaulJPhilp
Version1.0.0
Installs0

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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.