mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-24 15:59:29 +01:00
dispatcher: a little performance improvment
This commit is contained in:
parent
78f9bdcac9
commit
dd8b6219b9
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ def _pooled():
|
||||||
"""
|
"""
|
||||||
A wrapper to run a thread in a thread pool
|
A wrapper to run a thread in a thread pool
|
||||||
"""
|
"""
|
||||||
while True:
|
while 1:
|
||||||
try:
|
try:
|
||||||
func, args, kwargs = ASYNC_QUEUE.get()
|
func, args, kwargs = ASYNC_QUEUE.get()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue