Unity async / await: Awaitable

Описание к видео Unity async / await: Awaitable

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:    • Unity async / await: Coroutine's Hot ...  

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:   / tarodev  

=========

🔔 SUBSCRIBE: https://bit.ly/3eqG1Z6
🗨️ DISCORD:   / discord  
✅ MORE TUTORIALS:    / 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

Комментарии

Информация по комментариям в разработке