Sequential Execution: The Pattern
Learn the general pattern of iterating asynchronously over a list of tasks.
We'll cover the following
The pattern
The code of the spiderLinks()
function from the “Sequential Execution: Crawling of Links” lesson is a clear example of how it’s possible to iterate over a collection while applying an asynchronous operation. Notice that it’s a pattern that can be adapted to any other situation where we need to iterate asynchronously over the elements of a collection or, in general, over a list of tasks. This pattern can be generalized as follows:
Get hands-on with 1400+ tech skills courses.