Synchronously Waiting for a Task to Complete

Learn to implement sync_wait() for asynchronous C++ tasks by using SyncWaitTask and coroutines.

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:

Get hands-on with 1400+ tech skills courses.