How to run a function in seperate thread

Hi,
I am trying to set local notification(1000+) that is taking too long to execute and it makes the screen freeze… I know lua does not support threads but was wondering if there is way to run this function in a seperate thread, thus not blocking the UI thread.

Any help is appreciated.
thx,
Bejoy [import]uid: 84539 topic_id: 20180 reply_id: 320180[/import]

Check out coroutines such as this…

You asked for - Coroutines from OZ-Apps
–croisened [import]uid: 48203 topic_id: 20180 reply_id: 78814[/import]

@croisened - Thanx. Let me read it up. [import]uid: 84539 topic_id: 20180 reply_id: 78936[/import]