A while(true) loop with a for() iterator inside a Coroutine ?

That’s because there really isn’t anything to discuss. Coroutines are just code like anything else. Check it:

Coroutines in a nutshell:

Specifically, here’s how they roll:

Splitting up larger tasks in coroutines:

Coroutines are NOT always an appropriate solution: know when to use them!

1 Like