yield

yield ?value?

Stops the coroutine that runs it and gives the value to the caller. The next call of the coroutine goes on after the yield.

Examples

A click on an example runs it in the shell of the page.

Facts