Xbasic
a5queueing::queueItemWorkCompleted Method
Syntax
.WorkCompleted as A5Storage::CallResult ()
Returns
- resultA5Storage::CallResult
Call result.
Description
Indicates that Work was Completed for the item (will cause the item to be removed from the queue).
Example
dim qm as A5Queueing::Queue = null_value()
dim item as A5Queueing::QueueItem = null_value()
if A5Queueing::Queue::Open(qm,"Provider='RabbitMQ';Host='localhost';Queue='TestQ';").success then
dim message as c
if qm.dequeue(item).success then
' The body is xbasic to evaluate on the Worker...
evaluate_template(item.Body)
' ... Single that we completed the work
item.WorkCompleted()
end if
end if