\Workerman\EventsSwoole

Summary

Methods
Properties
Constants
add()
del()
clearAllTimer()
loop()
destroy()
getTimerCount()
$signalDispatchInterval
No constants found
No protected methods found
$_timer
$_timerOnceMap
$mapId
$_fd
$_hasSignal
N/A
No private methods found
No private properties found
N/A

Properties

$signalDispatchInterval

$signalDispatchInterval

$_timer

$_timer

$_timerOnceMap

$_timerOnceMap

$mapId

$mapId

$_fd

$_fd

$_hasSignal

$_hasSignal

Methods

add()

add(mixed  $fd, mixed  $flag, mixed  $func, mixed  $args = null) : bool

Add event listener to event loop.

Parameters

mixed $fd
mixed $flag
mixed $func
mixed $args

Returns

bool —

del()

del(mixed  $fd, mixed  $flag) : bool

Remove event listener from event loop.

Parameters

mixed $fd
mixed $flag

Returns

bool —

clearAllTimer()

clearAllTimer() : void

Remove all timers.

loop()

loop() : void

Main loop.

destroy()

destroy() : mixed

Destroy loop.

Returns

mixed —

getTimerCount()

getTimerCount() : mixed

Get Timer count.

Returns

mixed —