1.

Does PHP support event loop? If yes give some example.

Answer»
  • Event Loop is a concept from Javascript. In a single threaded execution, the CODE is waiting for the activity to GET over before moving ahead. Event Loop helps us utilize the waiting period to EXECUTE code.
  • PHP supports Event loop. There are multiple libraries which HELP us USE event loop in our project
    • https://github.com/reactphp
    • https://github.com/icicleio
    • https://github.com/asyncphp/doorman


Discussion

No Comment Found