You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This [.NET source generator](https://learn.microsoft.com/en-us/dotnet/csharp/roslyn-sdk/source-generators-overview) produces a sync method from an async one.
9
11
12
+
If you hate code duplication or calling async methods from sync please [⭐ star this project](https://github.com/zompinc/sync-method-generator/stargazers)
13
+
10
14
## Use cases
11
15
12
16
- A library which exposes both sync and async version of a method
@@ -131,6 +135,11 @@ If you only want to execute in the original async version, flip the flag like th
131
135
132
136
Note: `SYNC_ONLY` cannot be mixed with other symbols in a conditional expression and cannot have `#elif` directive.
133
137
138
+
> [!WARNING]
139
+
> `SYNC_ONLY` flag currently works in parameter lists, argument lists and statements.
140
+
> Please always double check your code when using this flag.
141
+
> If your use case is not supported, please log an issue.
0 commit comments