---
title: "Maciej Marzęta (@marzeta) | Hashnode"
description: "👋 Software Team Lead. See more at https://blog.marzeta.pl/. Read the latest articles by Maciej Marzęta on Hashnode."
url: "https://hashnode.com/@marzeta"
---

@marzeta

# Maciej Marzęta

@marzeta · Cracow, PL · Joined May 2022

👋 Software Team Lead. See more at https://blog.marzeta.pl/

[Website](https://marzeta.pl/)

## Comments

[Great question! When the semaphore limit is reached in this context, it means that the maximum number of concurrent operations (in this case, 5) is currently in progress. Semaphores in asyncio are used to limit the number of concurrent tasks that can access a particular resource. Here's how it works: When an async operation (in this case, the fetch\_data function) tries to acquire the semaphore, it checks if the limit has been reached. If the limit hasn't been reached, the operation acquires the semaphore and continues execution. The operation is paused if the limit has been reached (it "waits"). It is not rejected or dropped - instead, it's placed in a queue. When one of the currently executing operations releases the semaphore (when it finishes execution), the next operation in the queue (if any) is resumed - it acquires the semaphore and continues execution. So to answer your question, the requests are not rejected to compete again. They are queued and wait for their turn to execute when the semaphore is available.](https://hashnode.com/posts/demystifying-asynchronous-programming-in-python-practical-examples-with-async-and-await--deleted/642b4ab506e07feae6cdf38b/comment/64577a1f30be1a2397aa60bf#reply-64611956e091cf9cab99d086)

Reply · Article · May 14, 2023 · [Demystifying Asynchronous Programming in Python: Practical Examples with Async and Await](https://hashnode.com/posts/demystifying-asynchronous-programming-in-python-practical-examples-with-async-and-await--deleted/642b4ab506e07feae6cdf38b)

[Cool story, keep going and with that attitude you'll become really good dev. What I can add here, despite contributing to open source projects it's also great to read books about clean code - your open-source contributions will be better and your future projects will be easier to maintain. This is something that is not taught in university.](https://hashnode.com/posts/good-coders-code-dev-retro-2022/63b86a39d4fd34676b1e5d1d/comment/63b98aa1624134a0c9b44413)

Comment · Article · Jan 7, 2023 · [Good Coders Code :Dev Retro 2022](https://hashnode.com/posts/good-coders-code-dev-retro-2022/63b86a39d4fd34676b1e5d1d)
