
###########
OpenPromise
###########

.. js:class:: Util.OpenPromise

   This represents a ``Promise`` that has its ``resolve`` and ``reject`` functions bundled as methods attached to the promise object.
   
   
   Index
   =====
   
   .. rubric:: Methods
   
   
   .. rst-class:: api-xref-list
   
   
   * :js:meth:`~Util.OpenPromise.reject`
   * :js:meth:`~Util.OpenPromise.resolve`
   
   




Methods
=======

.. js:method:: Util.OpenPromise.reject

   .. rst-class:: sig-pretty-signature
   
      | reject(**error**\ : *any*\ ): *void*
   
   **Parameters**
   
      **error**\ : *any*
   
   
   **Returns**\ : *void*
   



.. js:method:: Util.OpenPromise.resolve

   .. rst-class:: sig-pretty-signature
   
      | resolve(**this**\ : :js:class:`OpenPromise <Util.OpenPromise>`\ <T>, **value**\ : (T \| *PromiseLike*\ )): *void*
   
   **Parameters**
   
      **this**\ : :js:class:`OpenPromise <Util.OpenPromise>`\ <T>
   
      **value**\ : (T \| *PromiseLike*\ )
   
   
   **Returns**\ : *void*
   
   .. rst-class:: sig-pretty-signature
   
      | resolve(**this**\ : :js:class:`OpenPromise <Util.OpenPromise>`\ <*void*\ >): *void*
   
   **Parameters**
   
      **this**\ : :js:class:`OpenPromise <Util.OpenPromise>`\ <*void*\ >
   
   
   **Returns**\ : *void*
   





