Promise is a JavaScript object for asynchronous operation.

state: pending -> fulfilled or rejected

Producer vs Consumer

the executor runs automatically.

when new Promise is created, the executor runs automatically.

we can make some delay.

--

--