This question already has an answer here:
- Defer SP.RequestExecutor.executeAsync 2 answers
I am using SP.RequestExecutor to add attachments to a list item.
I followed Can't upload a non-text file to SharePoint App via REST API
I need to wait the completation of the asynch call of executeAsync method.
How can I achieve this?