Convert your async into sync - sync method source generator #6596
Locked
virzak
started this conversation in
Show and tell
Replies: 1 comment
-
Hi @virzak this isn't really the right location for such a discussion. Maybe try the .net or c# discords? like discord.gg/csharp? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
If anyone needs to have both sync and async versions of a method, you can use sync method generator.
The generator uses CSharpSyntaxRewriter to strip or replace the code of async/await, CancellationToken, IProgress, GetAsyncEnumerable, Task, Memory<T>.
Hoping to get your input and suggestions.
Beta Was this translation helpful? Give feedback.
All reactions