thingsSDK / flasher.js

A GUI tool for flashing the Espruino JavaScript runtime on ESP8266 based boards
153 stars 25 forks source link

The Ability to Cancel #5

Open chalkers opened 8 years ago

chalkers commented 8 years ago

If you select the wrong port, we need to abort.

Either...RomComm could automatically do it. It needs to know it's talking to the wrong thing and throws an error for the Promise can handle it...other wise Promises aren't cancelable :(

Also given the end user the ability to cancel mid process would be ideal.

chalkers commented 8 years ago

@craigsdennis Once we've ripped out the promises this is possible :)

chalkers commented 7 years ago

Hey @craigsdennis can we cancel with rom-comm now?

craigsdennis commented 7 years ago

Indeed! Let's talk about what that API should look like, but it is definitely possible to deliver a poison pill. State will be whackadoo though.