csharp-async-patterns

Community

Master C# async/await for robust, performant apps.

Authorcreator-hian
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides comprehensive guidance on modern C# asynchronous programming, helping developers avoid common pitfalls like deadlocks, unhandled exceptions, and resource waste. It promotes best practices for building responsive and efficient applications, ensuring reliable async operations.

Core Features & Use Cases

  • Async/Await Best Practices: Learn proper CancellationToken usage, ConfigureAwait guidance, and effective error handling in async code.
  • Task Composition: Master parallel execution, sequential dependencies, and "first wins" patterns for complex async workflows.
  • Performance Optimization: Utilize ValueTask for allocation-free async operations in performance-critical code paths.
  • Use Case: Refactor a legacy synchronous data loading service to be fully asynchronous. Use this skill to implement cancellation, timeouts, and retry logic, ensuring the application remains responsive and handles transient network failures gracefully.

Quick Start

Refactor this synchronous method to be asynchronous, including cancellation support: public string LoadData() { /* ... */ }

Dependency Matrix

Required Modules

None required

Components

references

💻 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: csharp-async-patterns
Download link: https://github.com/creator-hian/claude-code-plugins/archive/main.zip#csharp-async-patterns

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 471,000+ vetted skills library on demand.