File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -408,7 +408,7 @@ async def run(self):
408408 finally :
409409 self .stopped = True
410410
411-
411+
412412class ExceptionCatchingTask (ConcurrentRunner ):
413413 """A Task that stores any exception encountered while running."""
414414
@@ -425,7 +425,7 @@ async def run(self):
425425
426426
427427def create_barrier (N_TASKS , timeout : float | None = None ):
428- return threading .Barrier (N_TASKS , timeout )
428+ return threading .Barrier (N_TASKS , timeout = timeout )
429429
430430
431431def async_create_barrier (N_TASKS , timeout : float | None = None ):
@@ -437,5 +437,4 @@ def barrier_wait(barrier, timeout: float | None = None):
437437
438438
439439async def async_barrier_wait (barrier , timeout : float | None = None ):
440- await asyncio .wait_for (barrier .wait (), timeout )
441-
440+ await asyncio .wait_for (barrier .wait (), timeout = timeout )
Original file line number Diff line number Diff line change @@ -425,7 +425,7 @@ def run(self):
425425
426426
427427def create_barrier (N_TASKS , timeout : float | None = None ):
428- return threading .Barrier (N_TASKS , timeout )
428+ return threading .Barrier (N_TASKS , timeout = timeout )
429429
430430
431431def create_barrier (N_TASKS , timeout : float | None = None ):
@@ -437,5 +437,4 @@ def barrier_wait(barrier, timeout: float | None = None):
437437
438438
439439def barrier_wait (barrier , timeout : float | None = None ):
440- asyncio .wait_for (barrier .wait (), timeout )
441-
440+ asyncio .wait_for (barrier .wait (), timeout = timeout )
You can’t perform that action at this time.
0 commit comments