Skip to content

Instantly share code, notes, and snippets.

@srichakradhar
Created March 2, 2018 04:35
Show Gist options
  • Save srichakradhar/939e830a37c29d9b44f4556f886b6a76 to your computer and use it in GitHub Desktop.
Save srichakradhar/939e830a37c29d9b44f4556f886b6a76 to your computer and use it in GitHub Desktop.
Make an async call synchronous using deasync in node js
require('deasync').loopWhile(function(){return !done;});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment