From 059f84b2d883f3cf183e78e063f13e7203e77b35 Mon Sep 17 00:00:00 2001 From: Jason Liu Date: Wed, 15 Nov 2023 10:43:27 -0500 Subject: [PATCH] add more links --- docs/blog/posts/learn-async.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/blog/posts/learn-async.md b/docs/blog/posts/learn-async.md index 1c97390..1a35050 100644 --- a/docs/blog/posts/learn-async.md +++ b/docs/blog/posts/learn-async.md @@ -36,7 +36,7 @@ If you want to understand the deeper details of `asyncio`, I recommend reading [ ### Understanding `gather` vs `as_completed` -In this post we'll show two ways to run tasks concurrently: `asyncio.gather` and `asyncio.as_completed`. The `gather` method is used to run multiple tasks concurrently and return the results as a list. The `as_completed` method is used to run multiple tasks concurrently and return the results as they complete. +In this post we'll show two ways to run tasks concurrently: `asyncio.gather` and `asyncio.as_completed`. The `gather` method is used to run multiple tasks concurrently and return the results as a `list`. The `as_completed` returns a `iterable` is used to run multiple tasks concurrently and return the results as they complete. Another great resource on the differences between the two can be found [here](https://medium.com/dev-bits/a-minimalistic-guide-for-understanding-asyncio-in-python-52c436c244ea). ## Example: Batch Processing