Need to timeout requests
apearson opened this issue · comments
Requests should not be allowed to take forever
This pattern might work: caolan/async#247 (comment)
Nevermind - I think this only works for items which are pending processing.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/race
This looks like the best way to achieve this
So each task in the async queue would become a race
between the insteon command and a timeout timer?
Correct