Class EventLoop
java.lang.Object
org.apache.sling.scripting.sightly.js.impl.loop.EventLoop
Simulates an event loop for the Rhino JS engine.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
EventLoop
public EventLoop()
-
-
Method Details
-
schedule
Add a task to the queue. If the queue is empty, start running tasks. If it isn't empty, continue running the available tasks- Parameters:
task
- the task to be added
-