Jackalope.WorkList protocol (jackalope v0.7.3) View Source
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.
Link to this section 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
Link to this section Types
Link to this section Functions
Specs
count(work_list()) :: non_neg_integer()
Count the number of work items
Specs
count_pending(work_list()) :: non_neg_integer()
Count the number of pending work items
Specs
Remove an item from the pending set
Specs
Are there work items
Specs
Get the current item on the work list, if any. Leave it on the work list.
Specs
Move a work item to the pending set as it is being worked on, awaiting confirmation of completion.
Specs
Remove the current item from the work list
Specs
Push an item on the work list
Specs
Remove all work items
Specs
Empty out the set of pending items