What about elaborating a little bit?
For example the Web.Get method will trigger the Web.GotText event
EDIT: after having seen your other thread here How do you add properties? I now understand you are talking about developing an extension…
Just check the MIT App Inventor sources… there are loads of examples about asynchronous processing and how to trigger an event… see for example the web component…