Skip to content

Commit

Permalink
feat: default name for SmartProcessingQueue (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler authored Dec 12, 2024
1 parent 9038a73 commit 3a0c2cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions a_sync/primitives/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,7 @@ def __init__(
Example:
>>> queue = SmartProcessingQueue(func=my_task_func, num_workers=3, name='smart_queue')
"""
name = name or f"{func.__module__}.{func.__qualname__}"
super().__init__(func, num_workers, return_data=True, name=name, loop=loop)
self._futs = weakref.WeakValueDictionary()

Expand Down

0 comments on commit 3a0c2cc

Please sign in to comment.