PHP Class Kraken\Loop\Bridge\React\ReactLoop

Inheritance: implements Kraken\Loop\Bridge\React\ReactLoopInterface
Show file Open project: kraken-php/framework Class Usage Examples

Protected Properties

Property Type Description
$loop Kraken\Loop\LoopInterface

Public Methods

Method Description
__construct ( Kraken\Loop\LoopInterface $loop )
__destruct ( )
addPeriodicTimer ( $interval, callable $callback )
addReadStream ( $stream, callable $listener )
addTimer ( $interval, callable $callback )
addWriteStream ( $stream, callable $listener )
cancelTimer ( React\EventLoop\Timer\TimerInterface $timer )
futureTick ( callable $listener )
getActualLoop ( )
isTimerActive ( React\EventLoop\Timer\TimerInterface $timer )
nextTick ( callable $listener )
removeReadStream ( $stream )
removeStream ( $stream )
removeWriteStream ( $stream )
run ( )
stop ( )
tick ( )

Method Details

__construct() public method

public __construct ( Kraken\Loop\LoopInterface $loop )
$loop Kraken\Loop\LoopInterface

__destruct() public method

public __destruct ( )

addPeriodicTimer() public method

public addPeriodicTimer ( $interval, callable $callback )
$callback callable

addReadStream() public method

public addReadStream ( $stream, callable $listener )
$listener callable

addTimer() public method

public addTimer ( $interval, callable $callback )
$callback callable

addWriteStream() public method

public addWriteStream ( $stream, callable $listener )
$listener callable

cancelTimer() public method

public cancelTimer ( React\EventLoop\Timer\TimerInterface $timer )
$timer React\EventLoop\Timer\TimerInterface

futureTick() public method

public futureTick ( callable $listener )
$listener callable

getActualLoop() public method

public getActualLoop ( )

isTimerActive() public method

public isTimerActive ( React\EventLoop\Timer\TimerInterface $timer )
$timer React\EventLoop\Timer\TimerInterface

nextTick() public method

public nextTick ( callable $listener )
$listener callable

removeReadStream() public method

public removeReadStream ( $stream )

removeStream() public method

public removeStream ( $stream )

removeWriteStream() public method

public removeWriteStream ( $stream )

run() public method

public run ( )

stop() public method

public stop ( )

tick() public method

public tick ( )

Property Details

$loop protected property

protected LoopInterface,Kraken\Loop $loop
return Kraken\Loop\LoopInterface