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

  1. View Slide

  2. View Slide

  3. View Slide

  4. View Slide

  5. View Slide

  6. View Slide

  7. View Slide

  8. View Slide

  9. View Slide

  10. View Slide

  11. View Slide

  12. View Slide

  13. View Slide

  14. View Slide

  15. View Slide

  16. View Slide

  17. View Slide

  18. View Slide

  19. View Slide

  20. View Slide

  21. View Slide

  22. View Slide

  23. View Slide

  24. View Slide

  25. View Slide

  26. View Slide

  27. View Slide

  28. View Slide

  29. View Slide

  30. View Slide

  31. View Slide

  32. View Slide

  33. View Slide

  34. View Slide

  35. View Slide

  36. View Slide

  37. View Slide

  38. View Slide

  39. View Slide

  40. View Slide

  41. View Slide

  42. View Slide

  43. View Slide

  44. View Slide

  45. View Slide

  46. View Slide

  47. View Slide