(PHP 5 >= 5.2.0, PHP 7, PECL swoole >= 1.9.0)
类摘要
Swoole\Event
{
public static boolean add
(
int $fd
,
callable $read_callback
[,
callable $write_callback
[,
string $events
]] )
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
)
}