PHP Class Kraken\Loop\Loop

Inheritance: implements Kraken\Loop\LoopExtendedInterface
Show file Open project: kraken-php/framework

Protected Properties

Property Type Description
$loop Kraken\Loop\LoopModelInterface

Public Methods

Method Description
__construct ( Kraken\Loop\LoopModelInterface $loop )
__destruct ( )
addPeriodicTimer ( $interval, callable $callback )
addReadStream ( $stream, callable $listener )
addTimer ( $interval, callable $callback )
addWriteStream ( $stream, callable $listener )
cancelTimer ( Kraken\Loop\Timer\TimerInterface $timer )
erase ( $all = false )
export ( Kraken\Loop\LoopExtendedInterface $loop, $all = false )
getFlowController ( )
getModel ( )
import ( Kraken\Loop\LoopExtendedInterface $loop, $all = false )
isRunning ( )
isTimerActive ( Kraken\Loop\Timer\TimerInterface $timer )
onAfterTick ( callable $listener )
onBeforeTick ( callable $listener )
onStart ( callable $listener )
onStop ( callable $listener )
onTick ( callable $listener )
removeReadStream ( $stream )
removeStream ( $stream )
removeWriteStream ( $stream )
setFlowController ( $flowController )
start ( )
stop ( )
swap ( Kraken\Loop\LoopExtendedInterface $loop, $all = false )
tick ( )

Method Details

__construct() public method

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

__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 ( Kraken\Loop\Timer\TimerInterface $timer )
$timer Kraken\Loop\Timer\TimerInterface

erase() public method

public erase ( $all = false )

export() public method

public export ( Kraken\Loop\LoopExtendedInterface $loop, $all = false )
$loop Kraken\Loop\LoopExtendedInterface

getFlowController() public method

public getFlowController ( )

getModel() public method

public getModel ( )

import() public method

public import ( Kraken\Loop\LoopExtendedInterface $loop, $all = false )
$loop Kraken\Loop\LoopExtendedInterface

isRunning() public method

public isRunning ( )

isTimerActive() public method

public isTimerActive ( Kraken\Loop\Timer\TimerInterface $timer )
$timer Kraken\Loop\Timer\TimerInterface

onAfterTick() public method

public onAfterTick ( callable $listener )
$listener callable

onBeforeTick() public method

public onBeforeTick ( callable $listener )
$listener callable

onStart() public method

public onStart ( callable $listener )
$listener callable

onStop() public method

public onStop ( callable $listener )
$listener callable

onTick() public method

public onTick ( callable $listener )
$listener callable

removeReadStream() public method

public removeReadStream ( $stream )

removeStream() public method

public removeStream ( $stream )

removeWriteStream() public method

public removeWriteStream ( $stream )

setFlowController() public method

public setFlowController ( $flowController )

start() public method

public start ( )

stop() public method

public stop ( )

swap() public method

public swap ( Kraken\Loop\LoopExtendedInterface $loop, $all = false )
$loop Kraken\Loop\LoopExtendedInterface

tick() public method

public tick ( )

Property Details

$loop protected property

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