View Source Jackalope.WorkList protocol (jackalope v0.9.0)
A work list manages work items that have yet to be sent out for processing, or have been sent out and are waiting for confirmation of completion.
Summary
Functions
Count the number of work items
Count the number of pending work items
Remove an item from the pending set
Are there work items
Get the current item on the work list, if any. Leave it on the work list.
Move a work item to the pending set as it is being worked on, awaiting confirmation of completion.
Remove the current item from the work list
Push an item on the work list
Remove all work items
Empty out the set of pending items
Types
Functions
@spec count(work_list()) :: non_neg_integer()
Count the number of work items
@spec count_pending(work_list()) :: non_neg_integer()
Count the number of pending work items
Remove an item from the pending set
Are there work items
Get the current item on the work list, if any. Leave it on the work list.
Move a work item to the pending set as it is being worked on, awaiting confirmation of completion.
Remove the current item from the work list
Push an item on the work list
Remove all work items
Empty out the set of pending items