When is Screen updated for Display.newtext changes

I am new to Corona ( a couple of weeks) and am trying to create a game where the user has to tap a picture based on a text input. 

My question is regarding the Screen updates. I am updating the mytext.text property of the text object in the application after every successful / failed tap. But I notice during debugging that although the “text” property has updated inside the text object, the simulator does not update the text even after several more (unrelated) steps are complete. So my question is - should the bitmap of the text not be refreshed/updated immediately on the next frame? Or is there some other trigger/condition that it waits for before refreshing the text object?

I found the below text in the Lua guide for Display objects, which seems to suggest that the update happens after the “code block” is complete. It is still not clear what the exact definition of code block is. Does it mean the screen updates only on the function ends or does it mean something else?

**************Display Objects Lua Guide ************************************************************************

Screen Updates

The basic drawing model involves a cycle of executing Lua code and rendering objects in the display hierarchy. During this cycle, the screen only updates when objects in the display change. These changes occur by adding, removing, or changing properties of the child display objects.

The screen never updates while a block of Lua code is executing. Therefore, if you modify a display object multiple times in a code block — updating the x position, for example — only the last change (the final x setting) will reflect when the screen updates.

Can this thread be closed? I realized I was not using the performwithdelay() listener correctly. Everything is working fine after correcting that. 

Can this thread be closed? I realized I was not using the performwithdelay() listener correctly. Everything is working fine after correcting that.