Unity async / await: Awaitable

Tarodev β€’ September 6, 2023
Video Thumbnail

About

Develop video games like a pro! Whether you're a beginner or a seasoned game developer, you'll find lots of useful tips and tricks to boost your development career. PATREON: https://www.patreon.com/tarodev DISCORD: https://discord.gg/tarodev

Video Description

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

You May Also Like

No Recommendations Found

No products were found for the selected channel.