PHP Class Kraken\Loop\Loop

Inheritance: implements Kraken\Loop\LoopExtendedInterface
Afficher le fichier Open project: kraken-php/framework

Protected Properties

Свойство Type Description
$loop Kraken\Loop\LoopModelInterface

Méthodes publiques

Méthode 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 méthode

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

__destruct() public méthode

public __destruct ( )

addPeriodicTimer() public méthode

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

addReadStream() public méthode

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

addTimer() public méthode

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

addWriteStream() public méthode

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

cancelTimer() public méthode

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

erase() public méthode

public erase ( $all = false )

export() public méthode

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

getFlowController() public méthode

public getFlowController ( )

getModel() public méthode

public getModel ( )

import() public méthode

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

isRunning() public méthode

public isRunning ( )

isTimerActive() public méthode

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

onAfterTick() public méthode

public onAfterTick ( callable $listener )
$listener callable

onBeforeTick() public méthode

public onBeforeTick ( callable $listener )
$listener callable

onStart() public méthode

public onStart ( callable $listener )
$listener callable

onStop() public méthode

public onStop ( callable $listener )
$listener callable

onTick() public méthode

public onTick ( callable $listener )
$listener callable

removeReadStream() public méthode

public removeReadStream ( $stream )

removeStream() public méthode

public removeStream ( $stream )

removeWriteStream() public méthode

public removeWriteStream ( $stream )

setFlowController() public méthode

public setFlowController ( $flowController )

start() public méthode

public start ( )

stop() public méthode

public stop ( )

swap() public méthode

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

tick() public méthode

public tick ( )

Property Details

$loop protected_oe property

protected LoopModelInterface,Kraken\Loop $loop
Résultat Kraken\Loop\LoopModelInterface