1. Basic Promise

    In this example, you click the button to create a promise, and click another button to resolve it. The resolution will not happen until you click the second button.

    also note that the promise only gets resolved once.

  2. Promise that waits for all

    In this example, you click the button to create a promise, and click another button to resolve it. The resolution will not happen until you click the second button.

    also note that the promise only gets resolved once.