Rusty Locks Notes 2023

Converting Callbacks to Promises

Ever stumbled over an third-party JS library which uses callbacks and had to build a Promise wrapper around it? In my today’s readings, an article from Scott Robinson draw my attention, as he was talking about an automatic conversion of these types of function calls. He utilizes Bluebird, which is able to convert a whole library into Promises with one call … never noticed, but sooo useful!

>>> Bluebird

#js #promise #callback #conversion

You can interact with this note (applause, criticism, whatever) by mention it in one of your posts or by replying to its syndication on Mastodon, which will also be shown here as a Webmention .


No Webmentions yet...

In case your blog software can't send Webmentions, you can use this form to submit me a mention of this note...