Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tehlike
· 7y ago · 0 comments
Some older libraries will still be callback driven, and one important thing is always resolving or rejecting promise.
Comments
[–]
CraftThatBlock
7y ago
If it's callback driven, is it a Promise mistake or a callback mistake? I don't think it would apply here
[–]
tehlike
OP
7y ago
Most of the time first thing i do is to wrap the library call in a promise. Callbacks are really bad after a few nested ones, bht promise doesnt eliminate all the problrms