4 ms·
That’s because WinRT already provides an async executor based on the Windows thread pool for you, C++ coroutines specify the plumbing for writing coroutines but
by snuxoll 6y ago
That’s because WinRT already provides an async executor based on the Windows thread pool for you, C++ coroutines specify the plumbing for writing coroutines but nothing more, just like Rust - Microsoft just spent the time working up the WinRT async interfaces to coroutines.
- pjmlp 6y agoISO C++20 defines them in a way that the current incompatibilities in the Rust world aren't happening as such and any C++ library using concurrency features is expected to just work across compilers. ISO C++ also does not define how std::thread should be mapped into the host platform.