Skip to content

Comment on C++ Coroutine Theory (2017)parent

Comments

Read the wikipedia page on coroutines first. It's a fairly basic concept in computer science.

It's a different model of control structure, primarily when you have a thing that produces data and a thing that consumes it. It could be in multiple threads, multiple machines, or just a single thread, so is often included in multiprocessing portions of designs, standards and instruction.

Actually, a coroutine is just a more generalised function - it's a function which retains it's state over multiple calls.

I recommend watching this video, which has a great overview. https://www.youtube.com/watch?v=_fu0gx-xseY

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.