Without looking into AsyncTask in any detail I can't say for sure - there's loads of info on promises online though
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Without looking into AsyncTask in any detail I can't say for sure - there's loads of info on promises online though