Here in the company I work for I'm facing a problem with the .NET/C# async/await feature regarding methods that returns nothing (void).
The project guidelines stands that the async/await should always be used, but IMO the are some cases where I need to use void methods and the async/await seems to not work properly with these kind of methods.
For example, if I adopt the command/query pattern that stands that methods that cause state change shouldn't return anything, just queries (that do not change state) is that returns.
What options do I've? I don't want to give up programming patterns just because some language feature like async/wait seems to not work with void methods.
The most problematic thing with async/async x void method is that the exceptions are discarded in the async context.