diff --git a/play/promise/pink.js b/play/promise/pink.js new file mode 100644 index 0000000..007bbdf --- /dev/null +++ b/play/promise/pink.js @@ -0,0 +1,8 @@ +const {discover, setColor, pair, stop = process.exit} = require('../..') + +const setColorWithDispatch = (...color) => dispatch => dispatch(setColor(...color, 0xff)) + +discover() + .then(pair) + .then(setColorWithDispatch(0xff, 0x2a, 0x50)) + .then(stop)