From 455a8b7effbbc96e4816401a4dc79313adcf94dd Mon Sep 17 00:00:00 2001 From: Bibo-Joshi <22366557+Bibo-Joshi@users.noreply.github.com> Date: Tue, 31 May 2022 15:39:48 +0200 Subject: [PATCH] Updated Concurrency (markdown) --- Concurrency.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Concurrency.md b/Concurrency.md index 9db9d34..d19af4b 100644 --- a/Concurrency.md +++ b/Concurrency.md @@ -102,6 +102,8 @@ while not application.update_queue.empty(): asyncio.create_task(application.process_update(update)) ``` +This setting is *independent* of the `block` parameter of `Handler` and within `application.process_update` concurrency still works as explained above. + **Note:** The number of concurrently processed updates is limited (the limit defaults to 4096 updates at a time). This is a simple measure to avoid e.g. DDOS attacks