(please sit up front)
Hi, I'm Chris
We spend a lot of time waiting...
...But we can write asynchronous code.
Talk about generators!
Pure functions are like
|a + b||a - b|
|a = 5, b = 4||9||1|
|a = 10, b = 10||20||0|
|a = 5, b = 4||...||a - b||a + b||...|
|a = 10, b = 10||a - b||...||...||a + b|
Generators can be used as interruptible functions
Otherwise known as coroutines
Asynchronous architecture in about 65 lines of code