Thanks for the reply ewing! Just a little clarification: does this include the handling of events and timers? For example:
local object = {}
function object:touch(event)
if event.phase == "moved" then
doThis()
elseif event.phase == "ended" then
doThat()
end
end
object:addEventListener("touch", object)
timer.performWithDelay(10, doThis, 0)
Is doThis() in the touch event guaranteed to return before doThat() will be called and there will never be two instances of doThis() (invoked by the touch event and the timer)?
@mike470: what do you mean with coroutines? [import]uid: 139365 topic_id: 30227 reply_id: 121129[/import]