PHP Class Icicle\Observable\Internal\EmitQueue

Datei anzeigen Open project: icicleio/icicle Class Usage Examples

Public Methods

Method Description
__construct ( Icicle\Observable\Observable $observable )
complete ( mixed $value ) Marks the observable as complete.
decrement ( ) Decrements the number of listening iterators. Marks the queue as disposed if the count reaches 0.
fail ( Throwable $exception ) Marks the observable as complete with the given error.
increment ( ) Increments the number of listening iterators.
isComplete ( ) : boolean
isFailed ( ) : boolean
pull ( ) : Icicle\Observable\Internal\Placeholder
push ( mixed $value ) : Generator

Private Methods

Method Description
emit ( mixed $value ) : Awaitable

Method Details

__construct() public method

public __construct ( Icicle\Observable\Observable $observable )
$observable Icicle\Observable\Observable

complete() public method

Marks the observable as complete.
public complete ( mixed $value )
$value mixed Observable return value.

decrement() public method

Decrements the number of listening iterators. Marks the queue as disposed if the count reaches 0.
public decrement ( )

fail() public method

Marks the observable as complete with the given error.
public fail ( Throwable $exception )
$exception Throwable

increment() public method

Increments the number of listening iterators.
public increment ( )

isComplete() public method

public isComplete ( ) : boolean
return boolean

isFailed() public method

public isFailed ( ) : boolean
return boolean

pull() public method

public pull ( ) : Icicle\Observable\Internal\Placeholder
return Icicle\Observable\Internal\Placeholder

push() public method

public push ( mixed $value ) : Generator
$value mixed
return Generator