timer:performWithDelay: cal first timer event immediately

hi,

it would be useful if there was an option for the first event (jn a repeated timer) was called immediately then the repeats after the delay. otherwise I have to create a separate function rather than using a single listener eg

[lua]timer.performWithDelay(1000, doSomething, 10, true) – true means perform first call without initial delay[/lua]
thanks
j [import]uid: 6645 topic_id: 3808 reply_id: 303808[/import]

ok it appears this currently can be achieved like this:

[lua]local myTimer = timer.performWithDelay(0, doSomething, -1)

– set delay for further calls after the first
myTimer._delay=5000[/lua]

i’ve checked it works as should here
http://developer.anscamobile.com/forum/2010/11/20/tip-fire-first-call-immediately-timerperformwithdelay [import]uid: 6645 topic_id: 3808 reply_id: 11622[/import]