> ## Documentation Index
> Fetch the complete documentation index at: https://ancplua.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# AL0126 - Forward CancellationToken to invocations that support it

> When a CancellationToken is available in scope and the invoked method has an overload accepting one, forward it to enable cooperative cancellation

Source: [AL0126CancellationTokenPropagationAnalyzer.cs](https://github.com/ANcpLua/ANcpLua.Analyzers/blob/main/src/ANcpLua.Analyzers/Analyzers/AL0126CancellationTokenPropagationAnalyzer.cs)

## Description

When a CancellationToken is available in scope and the invoked method has an overload accepting one, forward it to enable cooperative cancellation.

## Properties

* **Category**: Reliability
* **Severity**: Info
* **Enabled by default**: True
* **Code fix available**: True

## Configuration

```editorconfig theme={null}
dotnet_diagnostic.AL0126.severity = info
```
