CancellationToken support in async methods?

Hello!

I am using EventStore and running it with KeepReconnecting() setting. This works well for me, but I in case of unexpected situations (connection lost or EventStore was shut down) I set up timeouts for all ES operations.

As far as EventStore async methods does not support CancellationTokens, I used a workaround with Task.WhenAny method which simply waits first task to be complete: EventStore request or timeout. But I am not feeling well with this approach :slight_smile:

So this post is just to ask, are you planning to support cancellation tokens in further EventStore releases?

Best regards, Anatoliy

It’s possible and not a huge change. Let’s put up an issue for it…