Add ConfigureAwait(false) to all task awaitings (#22)#23
Add ConfigureAwait(false) to all task awaitings (#22)#23Choc13 merged 1 commit intowintoncode:masterfrom
Conversation
|
Hi again @govorovvs and thanks for the PR. Is there any documentation you can point me towards that suggests doing this as a standard practice for all awaitable task calls? It's not something I've come across before and was not aware it was something that was recommended. Is this causing you problems when you are using the lib, or are you just trying to apply some best practices to the code base? |
|
@Choc13, Not using |
|
OK, I've read through that issue and the linked resources from there. It would seem that you are correct and for libs it is almost certainly better to use However on the flip side it would seem that adding I'm inclined to accept though given that it's recommended by Microsoft and that there doesn't seem to be any conceivable downside. @jhickson do you have any thoughts on this PR, it seems like something you probably encountered in |
|
Be aware using |
|
@Choc13, yes, this is something that should be done. In the context of Winton.Extensions.Threading.Actor, the issues are different because often you do want the synchronisation context to be remembered. However, in your library adding Hi @govorovvs. In the context in which the |
|
@jhickson thanks for the confirming, I’ll approve. |
Addresses #22