Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Cooperative Multitasking With Generators

Cooperative Multitasking With Generators

Have you ever used the yield keyword? It's the hidden-wardrobe-entrance into a magical world of generators. This magical world is inhabited by beings called iterators and coroutines. Roll some epic battle-music...

In this talk we'll explore the origins of PHP generators, using them for iteration and ultimately how they can help turn synchronous code into asynchronous code.

Christopher Pitt

October 22, 2015
Tweet

More Decks by Christopher Pitt

Other Decks in Programming

Transcript