resilient-async-operations

Community

Resilient async tasks with safe cleanup

Authorvishalsachdev
Version1.0.0
Installs0

System Documentation

What problem does it solve?

A comprehensive pattern for handling asynchronous operations in JavaScript/TypeScript with automatic cleanup, graceful error handling, and memory-leak prevention. Use when building apps with API calls, background tasks, or any long-running async work.

Core Features & Use Cases

  • AbortManager: Centralized abort controller management with cleanup.
  • safePromise: Go-style error handling returning [data, error].
  • backgroundOperation: Non-blocking tasks that log errors.
  • withTimeout: Timeout-wrapped promises with abort support.

Quick Start

Wrap fetch or API calls with AbortManager-created controllers, and use safePromise or backgroundOperation to handle errors gracefully.

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: resilient-async-operations
Download link: https://github.com/vishalsachdev/claude-skills/archive/main.zip#resilient-async-operations

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.