-
Notifications
You must be signed in to change notification settings - Fork 104
runOnce
Mark Taylor edited this page Jan 4, 2014
·
4 revisions
runOnce(successCallback, failureCallback)
- successCallback The callback which will be called if the method is successful. The callback is passed the [Returned JSON] (Returned-JSON).
- failureCallback The callback which will be called if the method encounters an error. The callback is passed the [Returned JSON] (Returned-JSON).
Method allows the background service logic (doWork) to be run once from the HTML/ Javascript front-end. This method is provided to allow the background service logic to be run outside of the standard timer logic. Note that there is also a [Java runOnce] (runOnce-Java) which also provides the same functionality, but from within Java.
- [Returned JSON] (Returned-JSON)
- [Java runOnce] (runOnce-Java)