Skip to main content

Python module

max.serve.queue

Defines non-blocking queue protocols and utility functions for producer-consumer patterns in MAX.

Queue protocols

MAXPullQueueProtocol for a minimal, non-blocking pull queue interface in MAX.
MAXPushQueueProtocol for a minimal, non-blocking push queue interface in MAX.

Utilities

drain_queueRemove and return items from the queue without blocking.
get_blockingGet the next item from the queue.