Re:Show HN: Callbaxx.js – A utility library to bring callbac...
by jtokoph on Friday October 12, 2018 @03:56PM
(#18204247)
So now to get really deep/meta, you'll want to combine with promisify:
[ Parent
| on HN ]
Re:Show HN: Callbaxx.js – A utility library to bring callbac...
by leetbulb on Friday October 12, 2018 @06:39PM
(#18205225)
We must go deeper!
const promisify = require('bluebird').promisify
const from = require('rxjs').from
const isTrue = require('callbaxx').isTrue
const isTrueAsync = promisify(isTrue)
const makeIsTrueSource = val => from(isTrueAsync(val))
const source = makeIsTrueSource(true)
source.subscribe(console.log, console.error)
Re:Show HN: Callbaxx.js – A utility library to bring callbac...
by z3t4 on Saturday October 13, 2018 @03:58PM
(#18209701)
A few more abstractions and it will meet enterprise compliance. Probably need to write it as a Class ...
Re:Show HN: Callbaxx.js – A utility library to bring callbac...
by scottmf on Friday October 12, 2018 @05:55PM
(#18205007)
Hi! That's definitely an interesting experiment, but it's rather antithetical to the project.
In fact, it might even be broken by future versions of the library.
See issue #7 [1] for a look at why this might not be a good idea.
Thanks anyway!