Is there a way to restart a function after you paused it?

So there are no reasons to use coroutine there, you can just return the function instead of yielding and then running the function again.

4 Likes