Varie · 23 December 2012 5

leOS 1.0.3 & leOS 2.1.1

I’ve updated both leOS and leOS2 with the ability to add a task that has to be executed once it has been added to the scheduler.
This is possible by specifying the SCHEDULED_IMMEDIATESTART keywork for the status of the task.
Here’s an example:
myOS.addTask(myFunction, interval, SCHEDULED_IMMEDIATESTART);

Previously, the task would be executed the first time only after the interval has expired.

The new feature is available in leOS 1.0.3 and leOS2 2.1.1, that you can download from this page.