\Workerman\EventsSwoole

Summary

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

Properties

$signalDispatchInterval

$signalDispatchInterval : 

Type

$_timer

$_timer : 

Type

$_timerOnceMap

$_timerOnceMap : 

Type

$_fd

$_fd : 

Type

$_hasSignal

$_hasSignal : 

Type

Methods

add()

add(mixed  $fd, integer  $flag, callable  $func, mixed  $args = null) : boolean

Add event listener to event loop.

Parameters

mixed $fd
integer $flag
callable $func
mixed $args

Returns

boolean

del()

del(mixed  $fd, integer  $flag) : boolean

Remove event listener from event loop.

Parameters

mixed $fd
integer $flag

Returns

boolean

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