Exercise: TaskQueue with Promises
Explore how to refactor the TaskQueue class in Node.js by replacing promises with async/await syntax. Understand using await for handling asynchronous tasks, error management, and sequencing tasks efficiently, enhancing your grasp of modern asynchronous control flow patterns.
We'll cover the following...
We'll cover the following...
Problem statement
Migrate the TaskQueue class internals from promises to async/await where possible.
If you’re unsure about how to do this, click the “Show Hint” button.
Coding challenge
Write your solution code in the following code widget. We’ve already ...