phpday 2027 - Call for Papers

The Io\Poll\Backend enum

(PHP 8 >= 8.6.0)

はじめに

The Io\Poll\Backend enum lists the polling mechanisms an Io\Poll\Context can use. Which of them are available depends on the operating system.

In addition to its cases, the enum provides the Io\Poll\Backend::getAvailableBackends(), Io\Poll\Backend::isAvailable() and Io\Poll\Backend::supportsEdgeTriggering() methods.

列挙型概要

namespace Io\Poll;
enum Backend
{
case Auto ; // Selects the most suitable backend available on the platform: event ports, kqueue or epoll if one of them is available, and otherwise WSAPoll on Windows and poll elsewhere. This is the default.

case Poll ; // The poll system call, available on all platforms except Windows.

case Epoll ; // The epoll interface of Linux.

case Kqueue ; // The kqueue interface of macOS and the BSD systems.

case EventPorts ; // The event ports of Solaris and illumos.

case WSAPoll ; // The WSAPoll function of Windows.

}

目次

+add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top