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

Use ConfigureAwait(false) in async operations #8

Closed
randa1 opened this issue Dec 28, 2015 · 1 comment
Closed

Use ConfigureAwait(false) in async operations #8

randa1 opened this issue Dec 28, 2015 · 1 comment

Comments

@randa1
Copy link

randa1 commented Dec 28, 2015

Following the discussion in gigya/Orleans.KafkaStreamProvider#16:

when you are writing a general purpose library, you basically have no other choice - you don't know how it will be used, and in what scheduler the calling code will be running, so you basically have to use ConfigureAwait(false). I actually did not see THE EXPLICIT .NET guideline about it anywhere (maybe it exists somewhere), but my general understanding is that this is how you are supposed to write libraries. I have seen a lot of libraries using this principle. In your case, the Kafka Client is such a general purpose library.

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

No branches or pull requests

3 participants