Exercise: Producer-Consumer with Promises
Explore how to modify the TaskQueuePC class by using only promises for asynchronous control flow without async/await. Understand promise creation, task consumption, and error handling to master the producer-consumer pattern in Node.js.
We'll cover the following...
We'll cover the following...
Problem statement
Update the TaskQueuePC class’ internal methods so that they use just promises, removing any use of the async/await syntax.
If you’re unsure about how to do this, click the “Show Hint” button.
...