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.

}

目录

+添加备注

用户贡献的备注

此页面尚无用户贡献的备注。
To Top