Publisher | Redcode Games |
---|---|
File size | 58.44kB |
Number of files | 24 |
Latest version | 1.1.1 |
Latest release date | 2022-04-06 10:32:44 |
First release date | 2018-09-14 12:05:06 |
Supported Unity versions | 2018.4.2 or higher |
Await Extension gives you the opportunity to use async/await with many unity types! It incredibly simplifies work with threads and switching between them.
Here what you can await with Await Extensions:
- WaitFofEndOfFrame
- WaitForFixedUpdate
- WaitForSeconds
- WaitForSecondsRealtime
- WaitUntil
- WaitWhile
- IEnumerator
- AssetBundleRequest
- YieldInstruction
- CustomYieldInstruction
- Coroutine
- AsyncOperation
- UnityWebRequest
- And many other derived classes!
You can just await WaitForBackgroundThread for run your code in background thread, or await WaitForUpdate to runs on main thread!
For old projects (which use coroutines anywhere) this asset provide AsEnumerator and AsCoroutine task extension methods, which convert the task to one of them. This is useful for backward compatibility.
Now you do not need use coroutines directly, just await what you need!
AwaitExtensions is written in pure C# and supports all platforms!
Just read small documentation here and make your life easier!