|
OWorkQueue
Overview of OWorkQueue
OWorkQueueProvides a queue of jobs that will be executed in a particular order, at a particular interval. MethodsConstructorvar workQ = new OWorkQueue( key, interval );
push(see OQueue) Adds a job to the work queue (see Job Objects below). startStarts working. Jobs are taken from the queue and executed. PropertiesworkingBoolean containing whether the work queue is currently working or not. EventsonWorkingCalled when the queue has started working. onIdleCalled when the queue has finished working. Data structuresJob objectA job object is a POJO that represents a single job. Any object that has an execute function is a valid job object. {
execute: function(){
// do work
}
}
| ||||||
► Sign in to add a comment