net.sf.asyncobjects.asyncscala.control
Awake operation that waits on the queue if any (like a notify() method).
Awake operation that waits on the queue if any (like a notify() method). This method is usually called when some condition change, that awakened method could continue its work.
Wait until someone awake this request queue (like a wait() method)
Wait until someone awake this request queue (like a wait() method)
a promise that resolves when request queue is awaken
Run the request after this request finishes, but before any other request.
Run the request after this request finishes, but before any other request. This method could be used for high priority tasks.
the body to run
the promise that resolves when operation finishes
Execute the body if there are no requests running, otherwise delay the request until all pending requests complete.
Execute the body if there are no requests running, otherwise delay the request until all pending requests complete.
the body to execute
the promise that resolves when body resolves
The request queue allows serializing requests to the methods, so the next one will be executed only if previous one was completed. The queue allows to implement mutual exclusion pattern with pause and notification methods. The object is basically an event-based version of synchronized block.