#gamedev #gamedevelopment #indiedev #unity3d
#gamedev #gamedevelopment #indiedev #unity3d
you'll want a plugin:
- Await Extensions is light / simple github.com/Kurbanismail...
- UniTask is optimized / comprehensive but imo clunky github.com/Cysharp/UniT...
- Unity 6's Awaitables are like UniTask
you'll want a plugin:
- Await Extensions is light / simple github.com/Kurbanismail...
- UniTask is optimized / comprehensive but imo clunky github.com/Cysharp/UniT...
- Unity 6's Awaitables are like UniTask
An Awaitable class wraps your asynchronous tasks, letting methods pause and auto-resume right when they finish. No mess, just clean code.
🔗 Watch the full video to learn more: on.unity.com/Awaitables_YT
#GameDev #UnityTips #Unity3d #UnityLearn #Awaitables
An Awaitable class wraps your asynchronous tasks, letting methods pause and auto-resume right when they finish. No mess, just clean code.
🔗 Watch the full video to learn more: on.unity.com/Awaitables_YT
#GameDev #UnityTips #Unity3d #UnityLearn #Awaitables
Me: okay cool, so concepts are like Rust traits, so what's the concept for awaitables, so I can see the exact interface I need to implement?
C++: ...
Me: okay cool, so concepts are like Rust traits, so what's the concept for awaitables, so I can see the exact interface I need to implement?
C++: ...
CHORUS: woe, woe, woe to him / he will not learn it well // he'll misapply some patterns / and say "at least I've grown"
ME: no I'm going to do it right this time
CHORUS: he's calling the awaitables synchronously / it's a common mistake and he commonly makes it
CHORUS: woe, woe, woe to him / he will not learn it well // he'll misapply some patterns / and say "at least I've grown"
ME: no I'm going to do it right this time
CHORUS: he's calling the awaitables synchronously / it's a common mistake and he commonly makes it
useful metaphor: a foot race that must finish before the next one can start.
useful metaphor: a foot race that must finish before the next one can start.
I just finished the diagrams for serialized and thread-per-request, now I have to figure out how to draw awaitables :|
I just finished the diagrams for serialized and thread-per-request, now I have to figure out how to draw awaitables :|
Many of the types also don't quite make sense, I was able to implement AsyncIterator with just a loop and a yield which doesn't make sense to me.
Many of the types also don't quite make sense, I was able to implement AsyncIterator with just a loop and a yield which doesn't make sense to me.
Before:
await Task.WhenAny(task, Task.Delay(timeout, token))
After:
await task.WaitAsync(timeout, token)
Nice addition, though I'm still not fan of exception-based cancellation
Before:
await Task.WhenAny(task, Task.Delay(timeout, token))
After:
await task.WaitAsync(timeout, token)
Nice addition, though I'm still not fan of exception-based cancellation