Cees-Jan

ReactPHP: Event Loop

The event-loop is the heart of ReactPHP, it pumps all the stream's data around, runs timers when they are due, and processes the ticks. But there is not just one, ReactPHP supports four out of the box.

Newton's Cradle


Read on →

Categories: ReactPHP - ReactPHP Series Tags: ReactPHP - Event Loop - PHP

Cees-Jan

ReactPHP: Streams

Streams are the blood-vessels that transport the blood (data) pumped through your program by the heart of ReactPHP: the event-loop.

Stream


Read on →

Categories: ReactPHP - ReactPHP Series Tags: ReactPHP - Streams - PHP

Cees-Jan

ReactPHP: Ticks

The simplest feature in ReactPHP are ticks. Just as timers they are part of the event-loop. Ticks are often referred to as deferred callbacks. This makes them very useful to utilize the window between I/O events.

Newton's Cradle


Read on →

Categories: ReactPHP - ReactPHP Series Tags: ReactPHP - Ticks - PHP