mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-21 22:56:38 +01:00
Updated Concurrency (markdown)
parent
42976ac0f7
commit
455a8b7eff
1 changed files with 2 additions and 0 deletions
|
@ -102,6 +102,8 @@ while not application.update_queue.empty():
|
||||||
asyncio.create_task(application.process_update(update))
|
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).
|
**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
|
This is a simple measure to avoid e.g. DDOS attacks
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue