3 ms·
where did you get this understanding? this is definitely, 100% wrong, C++ coroutines are not backed by threads at all (or by anything really since as of C++20,
by jcelerier 4y ago
where did you get this understanding? this is definitely, 100% wrong, C++ coroutines are not backed by threads at all (or by anything really since as of C++20, the language only provides the building blocks for making your own coroutine / generator types and not actual implementations).
- andrewstuart 4y agoI got that understanding here: https://en.cppreference.com/w/cpp/thread/async https://en.cppreference.com/w/cpp/thread/async
- jcelerier 4y agocoroutines (https://en.cppreference.com/w/cpp/language/coroutines https://en.cppreference.com/w/cpp/language/coroutines) are unrelated to std::async
- andrewstuart 4y agoIn other languages they are tightly related to async/await and I made the mistake of assuming they were connected.
- srott 4y agoI think even gccgo used threads as coroutines, not sure if it's still the case