Skip to content

.ConfigureAwait(false) all async/await methods #1801

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

Closed
russcam opened this issue Feb 4, 2016 · 1 comment
Closed

.ConfigureAwait(false) all async/await methods #1801

russcam opened this issue Feb 4, 2016 · 1 comment

Comments

@russcam
Copy link
Contributor

russcam commented Feb 4, 2016

Since none of our async methods need to callback on the context, we should configure all async calls not to capture it.

@niemyjski
Copy link
Contributor

I took a look at the source code and it looks like you are missing them in quite a few spots: Here is one of them: https://github.com/elastic/elasticsearch-net/blob/master/src/Nest/Document/Multiple/BulkAll/BulkAllObservable.cs#L111 and pretty much every call to await Task.Delay(x). You may want to do a search for await the project and then in the find window search for configureawait and if you don't see one on every result line... You may be missing a spot.

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

No branches or pull requests

2 participants