Skip to content

Commit

Permalink
feat: AsyncExecutor type var (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Dec 21, 2024
1 parent fb35a3c commit 9b612de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion a_sync/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9b612de

Please sign in to comment.