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

Class 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.

Alchemy\util\promise\Waitable
Extended by Alchemy\util\promise\Signal

Direct known subclasses

Alchemy\util\promise\Promise
Namespace: Alchemy\util\promise
Located at alchemy/util/promise/Signal.php
Methods summary
public
# __construct( mixed $source = null, mixed $type = null )

Overrides

Alchemy\util\promise\Waitable::__construct()
protected
# precheck( )

Queries the Signal's source for its current value. If this is itself a Waitable, that Waitable becomes the new source.

Queries the Signal's source for its current value. If this is itself a Waitable, that Waitable becomes the new source.

Overrides

Alchemy\util\promise\Waitable::precheck()
Methods inherited from Alchemy\util\promise\Waitable
__invoke(), check(), expect(), resolve(), timeout(), type(), wait()
Properties summary
protected mixed $fnSource null
#
Properties inherited from Alchemy\util\promise\Waitable
$result, $spin, $started, $timeout
API documentation generated by ApiGen 2.8.0