Get value from an async function in Outlook Web Addin
I would suggest you could use Promise.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises   

If you don't want additional library for Promise, you could use Deferred from jQuery also. https://api.jquery.com/deferred.promise/