use condition to wait for result

This commit is contained in:
siutin
2023-02-06 15:57:26 +08:00
parent 4242e194e4
commit e0b58527ff
2 changed files with 5 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ import time
from modules import shared, progress
queue_lock = threading.Lock()
queue_lock_condition = threading.Condition(lock=queue_lock)
def wrap_queued_call(func):
def f(*args, **kwargs):