Closed andrewheusser closed 8 years ago
stopStream doesn't return one either
.write()
returns a promise, so i figured that if i return this.write() that would in turn return a promise once .write()
resolves. Is that not true?
oooh, thats a good question, i'm not sure but I would guess it does. maybe shoecraft can help us on this one
@andyh616 did you investigate this further?
Looks fine to me. If this.write() is a promise, then returning it will create a Promise object, to resolve when it is done. Should be able to then chain off streamStart and stop
Ok thank you @tashoecraft, you the real MVP. I'm closing this issue!
The documentation says this should return a promise but is just writes a value to the board. Should we make this a promise or change the comments? If it's possible that the command won't work occasionally, we should probably return a promise.