A good article on implementing an event loop in PHP using the built-in fibers.

  • TherouxSonfeir
    link
    fedilink
    English
    19 months ago

    Does anyone use this? It’s doesn’t seem very efficient to use PHP for this kind of thing.

    • Rikudou_SageOP
      link
      fedilink
      English
      19 months ago

      What kind of thing do you mean? Async is used in PHP, though not many people roll out their own event loop, that article is more for people who want to know how it works. Previously generators were used for native async support, nowadays fibers.