How to convert UniTask/UniTaskVoid to Task? #511
Unanswered
LukasDavidSchwarz
asked this question in
Q&A
Replies: 1 comment
-
Anybody here ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question:
I want to do the same thing as asked here #276: Await an async operation synchronously. In the issue, it is mentioned that I should convert UniTask to Task. How is that done? Does it also work for UniTaskVoid?
Why?
I essentially want to do this in an
void GameShuttingDown()
method, to await the running task before quitting the game.Edit: Possible duplicate of #481
Beta Was this translation helpful? Give feedback.
All reactions