PHP Class Icicle\Concurrent\Threading\Parcel

Inheritance: implements Icicle\Concurrent\Sync\Parcel
Show file Open project: icicleio/concurrent

Public Methods

Method Description
__clone ( )
__construct ( mixed $value ) Creates a new shared object container.
synchronized ( callable $callback ) : Generator
unwrap ( )

Protected Methods

Method Description
wrap ( $value )

Private Methods

Method Description
init ( mixed $value )

Method Details

__clone() public method

public __clone ( )

__construct() public method

Creates a new shared object container.
public __construct ( mixed $value )
$value mixed The value to store in the container.

synchronized() public method

public synchronized ( callable $callback ) : Generator
$callback callable
return Generator

unwrap() public method

public unwrap ( )

wrap() protected method

protected wrap ( $value )