Async Warning?

Both the PopulatePool() and EnableObjectInPool are underlined in my Visual Studio Code (wtih C# extension, Debugger for Unity, Code Snippets, Unity Snippets and Unity Tools) not sure which extension is calling this waring, but both are getting this warning/error message:

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.

Is this something to worry about, avoid doing?

Hi,

The error message sounds as if the async keyword was used in your code. Look for that word in your script(s) and remove it. We do not need it.

Did this help you fix the issue?


See also:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms