I’m developing a Service Manager SmartApp.
The Device calls a function in the Service Manager via
parent.XXX() call. The Service Manager then executes some functions. However it now needs to defer the final action so it saves the state in
state.queuedActions << [[function: this.&updateCameraImage, parameter: "", child: child]]
runIn(10, executeQueuedActions) // If was successful then give it time to complete
When executeQueuedActions runs later:
log.trace "Called execute queued actions: $state.queuedActions"
Called execute queued actions: 
It isnt’ saving the context of the call. I think the original call is in the context of the Device Handler where as the runIn end up running the context of the Service Manager SmartApp and doesn’t save the