I have been experimenting with returning synchronous results from an aura:method called by a parent component. I have observed two use cases in which results are never returned:
- When the aura:method is called from a function that is invoked from an event handler
- When the aura:method is called from $A.getCallback()
Does this mean that aura:method can only return "synchronous" results in the context of the framework lifecycle - i.e. the results will not be available to a calling function invoked in an asynchronous context?
This makes sense on a certain level, but I'm struggling with the "why" behind this.