Skip to main content
Back to registry

csharp-async

github/awesome-copilot

Your goal is to help me follow best practices for asynchronous programming in C#.

Installs7
Install command
npx skills add https://github.com/github/awesome-copilot --skill csharp-async
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
Your goal is to help me follow best practices for asynchronous programming in C#. When reviewing my C# code, identify these issues and suggest improvements that follow these best practices. - Use the 'Async' suffix for all async methods - Match method names with their synchronous counterparts when applicable (e.g., GetDataAsync() for GetData() ) - Return Task when the method returns a value - Return Task when the method doesn't return a value - Consider ValueTask for high-performance scenarios to reduce allocations - Avoid returning void for async methods except for event handlers - Use try/catch blocks around await expressions - Avoid swallowing exceptions in async methods - Use ConfigureAwait(false) when appropriate to prevent deadlocks in library code - Propagate exceptions with Task.FromException() instead of throwing in async Task returning methods - Use Task.WhenAll() for parallel execution of multiple tasks - Use Task.WhenAny() for implementing timeouts or taking the first completed task - Avoid unnecessary async/await when simply passing through task results - Consider cancellation tokens for long-running operations - Never use .Wait() , .Result , or .GetAwaiter().GetResult() in async code - Avoid mixing blocking and async code - Don't create async void methods (except for event handlers) - Always await Task-returning methods - Implement the async command pattern for...

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does csharp-async do?

Your goal is to help me follow best practices for asynchronous programming in C#.

Is csharp-async good?

csharp-async does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does csharp-async work with?

csharp-async currently lists compatibility with Agent compatibility has not been published yet..

What are alternatives to csharp-async?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install csharp-async?

npx skills add https://github.com/github/awesome-copilot --skill csharp-async

Related skills

More from github/awesome-copilot

Related skills

Alternatives in Software Engineering