rabbitmq / rabbitmq-dotnet-client

RabbitMQ .NET client for .NET Standard 2.0+ and .NET 4.6.2+
https://www.rabbitmq.com/dotnet.html
Other
2.05k stars 575 forks source link

Support cancellation #1420

Closed lukebakken closed 1 month ago

lukebakken commented 7 months ago

Reference: comment

@danielmarbach points out that the async API should support cancellation.

lukebakken commented 7 months ago

Notes:

danielmarbach commented 7 months ago

FYI since cooperative cancelation is up to the implementor to decide where and when cancelation can be triggered it might be OK to start adding the token to the public async APIs and then start implementing and further evolve it over time (example in minors)

lukebakken commented 1 month ago

1535 added the last of the CancellationToken parameters to the public API's async methods.