typedef void(* ValvulaAsyncQueueForeach)(ValvulaAsyncQueue *queue, axlPointer item_stored, int position, axlPointer user_data)

Handler definition used by valvula_async_queue_foreach to implement a foreach operation over all items inside the provided queue, blocking its access during its process.

queueThe queue that will receive the foreach operation.
item_storedThe item stored on the provided queue.
positionItem position inside the queue. 0 position is the next item to pop.
user_dataUser defined optional data provided to the foreach function.