Skip to content
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

Add Abort function to Async Wrapper #196

Closed
wants to merge 2 commits into from

Conversation

Sophist-UK
Copy link
Contributor

WinHTTP supports an Abort function to allow a request to be cancelled.

This PR provides a method for user to abort the call and ensures that requests are cancelled if the user deallocated the wrapper object before the request has completed.

WinHTTP supports an Abort function to allow a request to be cancelled.

This PR provides a method for user to abort the call and ensures that requests are cancelled if the user deallocated the wrapper object before the request has completed.
@timhall
Copy link
Member

timhall commented Feb 25, 2016

@Sophist-UK you've been busy! Thanks for all the work, I'll be reviewing this (and the other PRs shortly).

@timhall
Copy link
Member

timhall commented Mar 5, 2016

@Sophist-UK Have you had success with this working? In every case other than Class_Terminate there is no Request set on the instance, since the request is executed with the clone (web_Async) in ExecuteAsync. Closing for now in favor of future approaches (like #206)

@timhall timhall closed this Mar 5, 2016
@Sophist-UK
Copy link
Contributor Author

Hmm - you may be right about the cloning. I guess at the time I wrote this I didn't have as good an understanding as I do now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants