Tcl Expert · Lesson 2

Coroutines as generators and async waits

Build generators that hand out values one at a time, feed values back in with yield, and pause a coroutine until a timer fires.

Lessons · Tcl Expert · Lesson 2 of 10

Coroutines as generators and async waits

Build generators that hand out values one at a time, feed values back in with yield, and pause a coroutine until a timer fires.

Illustration for Tcl
Build generators that hand out values one at a time, feed values back in with yield, and pause a coroutine until a timer fires.