dispatcher: a little performance improvment

This commit is contained in:
Noam Meltzer 2016-06-01 21:07:48 +03:00
parent 78f9bdcac9
commit dd8b6219b9

View file

@ -42,7 +42,7 @@ def _pooled():
"""
A wrapper to run a thread in a thread pool
"""
while True:
while 1:
try:
func, args, kwargs = ASYNC_QUEUE.get()