When placing the [Broadcast] attribute on an async method, a compile warning displays in the console about missing await operators, even if there are await operators in the method.
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
at This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread. in C:\users\aiden\documents\s&box projects\platform_dash\Code\Player\Controller.cs:line 76
To Reproduce
Create a component with a [Broadcast] method that is async and has an await
Describe the bug
When placing the [Broadcast] attribute on an async method, a compile warning displays in the console about missing await operators, even if there are await operators in the method.
To Reproduce
Expected behavior
No compile warning
Media/Files
No response
Additional context
No response