Skip to content

Generated async methods do not correctly propagate OperationCanceledException #1672

Closed
@EamonHetherton

Description

@EamonHetherton

a number of the generated async methods will swallow OperationCanceledException and cause the resulting tasks to transition to the Faulted state instead of the Cancelled state when cancelling queries.

I have raised an issue over at maca88/AsyncGenerator#90 but in the meantime I believe a solution is to add catch (OperationCanceledException) { throw; } ahead of catch (Exception) where the catch block is catching an ancestor type of OperationCanceledException

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions