Async Await Support Ready

Hi there,

I want to use Async Await for multithreading however im not sure if it is ready for production or not. So few questions:
1- Will async await generate garabage like courtines does?
2- Can i use it for IL2CP based crossplatform game that will work on iOS, Android, Windows, and UWP?

Anything to be aware of before i switch my code from courtines to Async?

Thanks

In our experience, async/await does more allocations than coroutines. You should profile your case to be sure, but generally it is not kind to the GC.

Yes, as long as you are using 2018.1 with the new scripting runtime, async/await will work on all of these platforms with IL2CPP. Note that you should use the .NET Standard 2.0 Api Compatibility Level to ensure the best chance your code will work on all platforms Unity supports.

1 Like