PHP Amp\Internal Namespace

Classes

Name Description
LazyPromise Promise returned from Amp\lazy(). Use Amp\lazy() instead of instigating this object directly.
PrivateObservable An observable that cannot externally emit values. Used by Postponed in development mode.
PrivatePromise An promise that cannot be externally resolved. Used by Deferred in development mode.
WhenQueue Stores a set of functions to be invoked when a promise is resolved.

Traits

Name Description
Placeholder Trait used by Promise implementations. Do not use this trait in your code, instead compose your class from one of the available classes implementing \Interop\Async\Promise.
Producer Trait used by Observable implementations. Do not use this trait in your code, instead compose your class from one of the available classes implementing \Amp\Observable.