What’s a generator? How it can be helpful? Are there concrete and practical use cases for generators?
Let’s look at this function:
Once invoked, this function will run until the last line: an unstoppable or run-to-completion function. Execution context will be released after completion.
Run-to-completion functions are about the present: We need the result right away.