From d2fb1a24fdad11e4c1568ad167ccc052bbf7882b Mon Sep 17 00:00:00 2001 From: BobTheBuidler <70677534+BobTheBuidler@users.noreply.github.com> Date: Sun, 15 Dec 2024 22:46:04 -0400 Subject: [PATCH] Update executor.py (#480) --- a_sync/executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a_sync/executor.py b/a_sync/executor.py index 57e473ae..d00eaf71 100644 --- a/a_sync/executor.py +++ b/a_sync/executor.py @@ -115,7 +115,7 @@ def submit(self, fn: Callable[P, T], *args: P.args, **kwargs: P.kwargs) -> "asyn fut.set_exception(e) else: fut = wrap_future(self._super_submit(fn, *args, **kwargs)) # type: ignore [assignment] - self._start_debug_daemon(fut, fn, *args, **kwargs) + self._ensure_debug_daemon(fut, fn, *args, **kwargs) return fut def __repr__(self) -> str: