Resource Management
CommunityGuaranteed resource cleanup in Effect-TS apps.
Software Engineering#TypeScript#cleanup#Effect-TS#scoped#finalizers#acquireRelease#resource-management
Authorandrueandersoncs
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Resource Management guarantees cleanup of resources used within Effect-TS programs, preventing leaks and ensuring finalizers run even on errors or interruptions.
Core Features & Use Cases
- Acquire/Release and Acquire/Use/Release patterns to safely manage resources such as files, pools, and locks.
- Scope and Layered resources via Scope.scoped and Layer.scoped to tie lifetimes to code blocks or services.
- Finalizers and Ensuring to run cleanup code deterministically after success or failure, including on interruption.
Quick Start
Install the Effect-TS library in your project, then create a small resource (for example a file handle) using Effect.acquireRelease and run it inside Effect.scoped to guarantee cleanup.
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: Resource Management Download link: https://github.com/andrueandersoncs/claude-skill-effect-ts/archive/main.zip#resource-management 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.