As we discussed through Part I, co_wait keyword requires sort of "resumable thing". So what if we want to use co_await with time delta? For example, you can see the code which the co_await takes std::chrono::duration in order to suspend for the specified time from here: https://github.com/Microsoft/cppwinrt/blob/master/10.0.14393.0/Samples/JustCoroutines/Main.cpp#L31 The answer is the fact that vc++ compiler … Continue reading Beginning the coroutine with Visual Studio 2015 Update 3 Part 2
Tag: coroutine
Beginning the coroutine with Visual Studio 2015 Update 3 Part 1
I recently started using the cppwinrt library which brought chances dealing with the new C++ standard(yet) coroutine. The cppwinrt recommends using C++ coroutines instead of PPL while handling async operations. Refer to the following github issues for more information: https://github.com/Microsoft/cppwinrt/issues/54 https://github.com/Microsoft/cppwinrt/issues/46 Although the coroutine concept itself might feel coming familiar because we're already exposed async … Continue reading Beginning the coroutine with Visual Studio 2015 Update 3 Part 1