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