Skip to content

Drain or cancel waiting tasks when the producer is destroyed #187

@rnowling-memphis

Description

@rnowling-memphis

The current implementation of async produce doesn't track the active tasks. Using a pattern from the Python asyncio documentation, tasks could be tracked so that when destroy() is called on the producer, all outstanding messages can be cancelled or at least finished.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions