The series continue.
C++ coroutines: The co_await operator and the function search algorithm
by Raymond Chen
From the article:
So you’re following along Kenny Kerr’s blog and you get to the part where he uses co_await on a time duration:
co_await 5s;
so you try it:
#include <chrono> using namespace std::chrono; winrt::IAsyncAction Delay10Seconds() { co_await 10s; co_return; }and you get the error message
no callable ‘await_resume’ function found for type ‘Expression’ where Expression=std::chrono::seconds
Add a Comment
Comments are closed.