Hello,
Is Corona asynchronous like flash? For example, does it still runs the code after when an event is send out? Or does the event get call instantly?
Thanks
- Jeffrey Quek
Hello,
Is Corona asynchronous like flash? For example, does it still runs the code after when an event is send out? Or does the event get call instantly?
Thanks
It is generaly synchronous. There is handle code/events-render-handle code/events-render.
Maybe I can be wrong because it’s what I observed but I have a impression that events are handled at the begining of internal code handling loop. Please wait for admins to answer because I can be wrong and I’m also interested to hear answer
Some clarification of your question might help.
Corona is asynchronous in the sense that functions/callbacks are called whenever an event is triggered, not in a logical, program-driven sequence.
But I suspect your question is along the lines of what happens if event-1 triggers, and while I’m handling event-1, some other event-2 triggers … does the event-1 handler complete before event-2’s handler starts? (or if I’m in the event-1 handler and it’s time for the next frame in an animation to trigger, what happens?)
And like piotrz55, I’m hoping the admins can chime in on that.
It is generaly synchronous. There is handle code/events-render-handle code/events-render.
Maybe I can be wrong because it’s what I observed but I have a impression that events are handled at the begining of internal code handling loop. Please wait for admins to answer because I can be wrong and I’m also interested to hear answer
Some clarification of your question might help.
Corona is asynchronous in the sense that functions/callbacks are called whenever an event is triggered, not in a logical, program-driven sequence.
But I suspect your question is along the lines of what happens if event-1 triggers, and while I’m handling event-1, some other event-2 triggers … does the event-1 handler complete before event-2’s handler starts? (or if I’m in the event-1 handler and it’s time for the next frame in an animation to trigger, what happens?)
And like piotrz55, I’m hoping the admins can chime in on that.