Swoole
PHP Manual

The Swoole\Event class

(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)

Introduction

Class synopsis

Swoole\Event {
/* Methods */
public static boolean add ( int $fd , callable $read_callback [, callable $write_callback [, string $events ]] )
public static void defer ( mixed $callback )
public static boolean del ( string $fd )
public static void exit ( void )
public static boolean set ( int $fd [, string $read_callback [, string $write_callback [, string $events ]]] )
public static void wait ( void )
public static void write ( string $fd , string $data )
}

Table of Contents


Swoole
PHP Manual