diff --git a/a_sync/executor.py b/a_sync/executor.py index 45db6831..efd680d9 100644 --- a/a_sync/executor.py +++ b/a_sync/executor.py @@ -313,9 +313,11 @@ def __init__( self.__init_mixin__() +AsyncExecutor = Union[AsyncThreadPoolExecutor, AsyncProcessPoolExecutor] + # For backward-compatibility -ProcessPoolExecutor = AsyncProcessPoolExecutor ThreadPoolExecutor = AsyncThreadPoolExecutor +ProcessPoolExecutor = AsyncProcessPoolExecutor # Pruning thread pool