Class: shaka.util.PublicPromise

Constructor

new PublicPromise() → {Promise.<T>}

A utility to create Promises with convenient public resolve and reject methods.
Extends:
  • Promise.<T>
Source:
Returns:
Type
Promise.<T>

Extends

  • Promise.<T>

Methods

reject(reasonopt)

Parameters:
Name Type Attributes Description
reason * <optional>
Source:

resolve(valueopt)

Parameters:
Name Type Attributes Description
value T <optional>
Source: