php8.5
Home/ Manual/ reference / sync/ The SyncEvent class

The SyncEvent class

A cross-platform, native implementation of named and unnamed event objects. Both automatic and manual event objects are supported.

Intro

A cross-platform, native implementation of named and unnamed event objects. Both automatic and manual event objects are supported.

An event object waits, without polling, for the object to be fired/set. One instance waits on the event object while another instance fires/sets the event. Event objects are useful wherever a long-running process would otherwise poll a resource (e.g. checking to see if uploaded data needs to be processed).

Class synopsis

class SyncEvent { }

Syncevent

In this section

Source: reference/sync/syncevent.xml · from the official PHP manual (php/doc-en)