Overview

Namespaces

  • Alchemy
    • core
      • query
      • schema
    • dialect
    • engine
    • orm
    • tests
    • util
      • promise
  • PHP

Classes

  • Promise
  • Signal
  • SignalFn_Then
  • Waitable

Interfaces

  • IPromisable

Exceptions

  • SerializableException
  • TimeoutException
  • TypeException
  • Overview
  • Namespace
  • Class
  • Tree

Namespace Alchemy\util\promise

Classes summary
Promise Similar to a Signal, except it only allows a value to be resolved once. Encapsulates an unresolved value and a promise to resolve it later. Use it to simplify communication between asyncronous processes.
Signal Signals are Waitables with the concept of a 'source', a dynamic value represented by a callable that returns either an unresolved NULL, an Exception, or a non-NULL value.
SignalFn_Then This is a class instead of a lamda function so that it can potentially be serialized, though that also requires that the callbacks and parent Promises be serializable as well.
Waitable Abstraction for objects which can be checked (non-blocking) or waited upon to resolve (blocking, with optional timeout).
Interfaces summary
IPromisable An interface for objects that are functionally identical when composed with Promises; in other words, they must be immutable and time-independent.
Exceptions summary
SerializableException
TimeoutException
TypeException
API documentation generated by ApiGen 2.8.0