question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Should not be a mutant for ConfigureAwait(false)

See original GitHub issue

We have various async code in our libraries like:

await doSomething(context).ConfigureAwait(false);

Stryker-mutator change the false flag to true but most of the time it’s for UnitTest purpose not interesting to change the flag to true.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
richardwerkmancommented, Mar 22, 2019

We could check the name of a method before mutating it’s arguments. However we can’t be sure that if the name is ConfigureAwait it is an async configuration. If we exclude this method (or maybe even more) we could also exclude methods that should be mutated. How do you think we should handle this?

0reactions
anhaehnecommented, Jul 31, 2019
Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - Why is writing ConfigureAwait(false) on every line with ...
As a general rule, yes. ConfigureAwait(false) should be used for every await unless the method needs its context.
Read more >
.NET: Don't use ConfigureAwait(false) | Gabe's Code
As a general rule, ConfigureAwait(false) should be used for every await unless the method needs its context. It's even what Stephen Cleary (a ......
Read more >
Why I no longer use ConfigureAwait(false)
ConfigureAwait(false) is about not returning back to the synchronization context when an awaiter completes. It's about performance, not ...
Read more >
Configuration | Stryker Mutator
All other mutants will not have a result. If you wish to test only changed sources and tests but would like to have...
Read more >
Performance Best Practices | Couchbase Docs
If your application is consistently sending mutation operations larger than this value, increasing the value may improve performance at the cost of RAM ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found