Skip to content

Instantly share code, notes, and snippets.

@juliangruber
Created April 10, 2014 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juliangruber/10392957 to your computer and use it in GitHub Desktop.
Save juliangruber/10392957 to your computer and use it in GitHub Desktop.
yield function(done){
console.log('in yield');
setTimeout(function(){
console.log('after timeout');
done();
}, 0);
}
console.log('waited')
// in yield
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment