Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

(no description)

File Size: 84 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

FulfilledPromise:: (8 methods):
  __construct()
  then()
  otherwise()
  wait()
  getState()
  resolve()
  reject()
  cancel()


Class: FulfilledPromise  - X-Ref

A promise that has been fulfilled.

Thenning off of this promise will invoke the onFulfilled callback
immediately and ignore other callbacks.
__construct($value)   X-Ref
No description

then(callable $onFulfilled = null,callable $onRejected = null)   X-Ref
No description

otherwise(callable $onRejected)   X-Ref
No description

wait($unwrap = true, $defaultDelivery = null)   X-Ref
No description

getState()   X-Ref
No description

resolve($value)   X-Ref
No description

reject($reason)   X-Ref
No description

cancel()   X-Ref
No description