Unity async / await: Part 2 - Awaitable

https://www.youtube.com/watc...
In this follow-up video, we explore the Awaitable class introduced in Unity 2023.1, which aims to improve asynchronous programming workflows. See part 1: https://youtu.be/WY-mk-ZGAq8 Topics Covered: 1. Learn about the new Awaitable.WaitForSecondsAsync, NextFrameAsync, EndOfFrameAsync & FixedUpdateAsync. 2. Learn about cancellation tokens and simplified workflows with MonoBehaviour's new built-in destroy token. 3. Efficiently switch between main and background threads using Awaitable.MainThreadAsync and Awaitable.BackgroundThreadAsync methods. 4. Manage your long-running tasks with WhenAll 5. WebGL support 6. Backward compatibility for AsyncOperations. Like the video if it's helpful, and feel free to subscribe for more straightforward Unity tutorials and tech demos. For questions or comments, please leave them below. ❤️ Become a Tarobro on Patreon: https://www.patreon.com/tarodev ========= 🔔 SUBSCRIBE: https://bit.ly/3eqG1Z6 🗨️ DISCORD: https://discord.gg/tarodev ✅ MORE TUTORIALS: https://www.youtube.com/tarodev 0:00 Intro 0:27 Introducing Awaitable 2:07 Cancellation tokens / destroyCancellationToken 5:20 BackgroundThreadAsync / MainThreadAsync 6:55 Returning Awaitable 7:55 WebGL compatibility 8:34 Legacy support #Unity #Unity2023 #AsyncAwait #GameDevelopment #Programming #Awaitable #CancellationTokens #ThreadSwapping #webgl
Home
/
Indie Game Developers
/
Tarodev
/
Unity async / await: Part 2 - Awaitable