I saw an old thread referencing Promises, but can't seem to find an official Promise module anywhere. I tried an implementation by @favofrom this thread but a simple console.log() test had erroneous results where callbacks occurred before resolutions.
Trying to save a bit of time myself and hoping this was already implemented.
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.
I saw an old thread referencing Promises, but can't seem to find an official Promise module anywhere. I tried an implementation by @favo from this thread but a simple
console.log()
test had erroneous results where callbacks occurred before resolutions.Trying to save a bit of time myself and hoping this was already implemented.