-
Notifications
You must be signed in to change notification settings - Fork 22
Closed
Labels
Feature RequestNew feature or requestNew feature or request
Description
The current async produce functionality will create as many async tasks as the user requests. We may want to implement a pattern like that described in the Python asyncio documentation to track all of the active async tasks with a loop to wait for the set to drain if it exceeds a given size. This would allow the user to avoid creating too many async tasks.
if len(background_tasks) >= UPPER_LIMIT:
while len(background_tasks) >= LOWER_LIMIT:
asyncio.sleep(0.1)Metadata
Metadata
Assignees
Labels
Feature RequestNew feature or requestNew feature or request