Tcl Expert · Lesson 8

Event-driven design: coroutine state machines and timers

Write a state machine as a coroutine, run several timed tasks at once in one thread, and manage after, idle callbacks and update.

Lessons · Tcl Expert · Lesson 8 of 10

Event-driven design: coroutine state machines and timers

Write a state machine as a coroutine, run several timed tasks at once in one thread, and manage after, idle callbacks and update.

Illustration for Tcl
Write a state machine as a coroutine, run several timed tasks at once in one thread, and manage after, idle callbacks and update.