Azure / Azure/azure-sdk-tools

[azsdk-cli] Enforce cancellation token usage for async methods

Open
#12,421 0 comments 0 reactions 0 assignees View on GitHub
azsdk-cli Central-EngSys
Dominant language
C#
Stars
135
Forks
260
Avg merge
3d 1h
Merged PRs (30d)
144

Description

We should add an analyzer just to make sure we're always passing down cancellation tokens for any async methods and/or where we do blocking operations (or call dependencies that take cancellation tokens). I'm not sure this is that simple to do.

Contributor guide

Open the contributing guide

Research direction

The issue names no files, tests, or entry points. First determine where the repository's analyzers are implemented and how existing rules are tested; done means defining and validating the scope for cancellation-token enforcement, including async methods, blocking operations, and token-aware dependencies.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.