Python module
max.serve.queue
Defines non-blocking queue protocols and utility functions for producer-consumer patterns in MAX.
Queue protocols
MAXPullQueue | Protocol for a minimal, non-blocking pull queue interface in MAX. |
|---|---|
MAXPushQueue | Protocol for a minimal, non-blocking push queue interface in MAX. |
Utilities
drain_queue | Remove and return items from the queue without blocking. |
|---|---|
get_blocking | Get the next item from the queue. |
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!