aea.helpers.async_
friendly_
queue
This module contains the implementation of AsyncFriendlyQueue.
AsyncFriendlyQueue Objects
queue.Queue with async_get method.
__
init__
Init queue.
put
Put an item into the queue.
Arguments:
item
: item to put in the queueargs
: similar to queue.Queue.putkwargs
: similar to queue.Queue.put
get
Get an item into the queue.
Arguments:
args
: similar to queue.Queue.getkwargs
: similar to queue.Queue.get
Returns:
similar to queue.Queue.get
async_
wait
Wait an item appears in the queue.
Returns:
None
async_
get
Wait and get an item from the queue.
Returns:
item from queue