Skip to content

Instantly share code, notes, and snippets.

@juliangruber
Created April 10, 2014 15:17
Show Gist options
  • Select an option

  • Save juliangruber/10392957 to your computer and use it in GitHub Desktop.

Select an option

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