Skip to content

[RuntimeAsync] In some scenarios OperationCanceledException results in a Faulted task instead of Canceled #120344

@VSadov

Description

@VSadov

OperationCanceledException in async methods should result in a Canceled task.

The continuation dispatch code has code that special-cases OperationCanceledException, but scenarios that end up in FinalizeTaskReturningThunk are missing a similar case.

As a result cancellation may lead to unhandled exception crashes.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions