Speaker: Arul Kumaran, Logical Steps
Even now, many assume PHP is only synchronous and not capable of async processes, which is wrong.
Asynchronous execution has several advantages. Letting you multitask on a single thread. That is cooperative multitasking. Each running task gives the control back to the system when idle. For example, waiting for an HTTP response or IO operation.
All these are well and fine, but the asynchronous code is messy and hard to maintain. This presentation shows how to write async code in a synchronous fashion to get the best of both worlds.
Generators with the yield keyword, are the most underused feature in PHP. It has great potential. We can take advantage of them by implementing async and await in PHP on our own!
About the speaker
Arul is a self-taught full stack developer. He is the Author of Restler API Server Framework. He founded Luracast, to provide developers with free tools and open source software. He is currently working on the blockchain solution integrating PHP. Home automation and IOT is his latest hobby.
Event Page: https://2018.phpconf.asia
Produced by Engineers.SG
Help us caption & translate this video!