Amp\Parallel\Sync\ThreadedParcel classThreadedParcel implementsAmp\Parallel\Sync\Parcel

A thread-safe container that shares a value between multiple threads.

Summary

Properties

Methods

Properties

Methods

__construct —public function__construct(mixed$value)

Creates a new shared object container.

Type Parameter Description Default Value
mixed $value The value to store in the container. none
unwrap —public functionunwrap():Amp\Promise
No documentation.
synchronized —public functionsynchronized(callable$callback):Amp\Promise
No documentation.
Type Parameter Description Default Value
callable $callback No documentation. none