WWW-www.enlightenment.org pushed a commit to branch master. http://git.enlightenment.org/website/www-content.git/commit/?id=0b9d149965be1f2ee87f4023539963ee3b79caa3
commit 0b9d149965be1f2ee87f4023539963ee3b79caa3 Author: Lauro Moura <lauromo...@expertisesolutions.com.br> Date: Wed Dec 9 13:49:53 2015 -0800 Wiki page job changed with summary [] by Lauro Moura --- pages/api/javascript/ecore/job.txt | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/pages/api/javascript/ecore/job.txt b/pages/api/javascript/ecore/job.txt index 8e709ca..f37437d 100644 --- a/pages/api/javascript/ecore/job.txt +++ b/pages/api/javascript/ecore/job.txt @@ -4,25 +4,33 @@ **DRAFT** -The Job module allows queuing work to be done when +The Job module allows queuing work to be done when the current event is dealt with. -==== Constants ==== +Jobs are processed by the main loop similarly to events. They also will be executed in the order in which they were added. +A good use for them is when you don't want to execute an action immediately, but want to give the control back to the main loop so that it will call your job callback when jobs start being processed (and if there are other jobs added before yours, they will be processed first). This also gives the chance to other actions in your program to cancel the job before it is started. -==== Functions ==== +==== Functions and methods ==== -=== add(args) === +=== add(callback) === Syntax <code javascript> - code + function mycallback() { ... }; + var job = efl.Ecore.Job.add(mycallback); </code> Parameters - * parameters + * callback - A function to be called when the job is handled. Return value - * return \ No newline at end of file + * return + +=== job.del() === + +Syntax + +<code javascript> \ No newline at end of file --