Synchronously Waiting for a Task to Complete
Learn to implement sync_wait() for asynchronous C++ tasks by using SyncWaitTask and coroutines.
We'll cover the following...
We'll cover the following...
An important aspect of the Task type is that whatever invokes a coroutine that returns a Task must co_await on it and is also a coroutine. This creates a chain of coroutines (continuations). For example, assume we have a coroutine like this: