-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cancellation token support for async methods #18
Comments
Hi @alex-bortnik - we just closed an issue yesterday about this, and we provided an option for users to configure timeouts on these requests, which sounds like would be helpful to you. Can you take a look at #12 and see if that works first? I see that you've added cancellation tokens to functions like |
Hi @jkw-statsig - yes, I saw that, my PR is based on #12 implementation. This PR allows to provide either timeout or cancellation token. Override with optional cancellation token is added only to the public methods which are calling Implementation of |
Also, the common practice in .NET/C# is to pass cancellation token downstream from upper layer. |
Got it, thanks for the context. We'll take a look into your patch |
@jkw-statsig any update on this? |
Hi,
we would like to add cancellation tokens support for async methods.
I prepared PR (see patch in attachment). It also includes update from obsolete
WebRequest
toHttpClient
(please rename from txt -> patch)
cancellation_token_support_for_async_methods.txt
.
The text was updated successfully, but these errors were encountered: