The Swoole\Event class

Introduction

Class synopsis

Swoole\Event
class Swoole\Event {
/* Methods */
public static bool add(
    int $fd,
    callable $read_callback,
    callable $write_callback = ?,
    string $events = ?
)
public static void defer(mixed $callback)
public static bool del(string $fd)
public static void exit()
public static bool set(
    int $fd,
    string $read_callback = ?,
    string $write_callback = ?,
    string $events = ?
)
public static void wait()
public static void write(string $fd, string $data)
}
Table of Contents