AsyncGenerator
AsyncGenerator copied to clipboard
Generating async c# code using Roslyn
Convert: ``` Task.Run(() => DoSomething()).Wait(); Task.Run(() => DoSomething2()).Result; Task.Run(() => DoSomething3()).GetAwaiter().GetResult(); ``` to ``` Task.Run(() => DoSomething()).Wait(); Task.Run(() => DoSomething2()).Result; await Task.Run(() => DoSomething3()); ``` `.Wait()` and `.Result` shouldn't be...
Convert: ``` Func func = DoSomething(); func(); ``` to ``` Func func = DoSomethingAsync(); await func(); ```
Currently, the generator is able to append the cancellation parameter as the last parameter, but this will produce an error when a method has a parameter declared as parameter array...
https://github.com/nhibernate/nhibernate-core/issues/3592
Hi @maca88, would you be able to release a version with .NET 10 support?