paint-brush
Function decorators: Transforming callbacks into promises and back againby@joelthoms
9,441 reads
9,441 reads

Function decorators: Transforming callbacks into promises and back again

by Joel Thoms4mMay 15th, 2017
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Every day that I work in JavaScript-land, I stumble across a mixture of callbacks, promises or async/await. I have my own preferences in how I like to handle async code, though sometimes I don’t have a choice because an external library like <a href="https://nodejs.org/api/fs.html" target="_blank">fs</a>, <a href="https://serverless.com" target="_blank">serverless</a>, <a href="https://www.npmjs.com/package/aws-sdk" target="_blank">aws-sdk</a>, etc. is using something else.

People Mentioned

Mention Thumbnail

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Function decorators: Transforming callbacks into promises and back again
Joel Thoms HackerNoon profile picture
Joel Thoms

Joel Thoms

@joelthoms

L O A D I N G
. . . comments & more!

About Author

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite