SHARE
TWEET

Untitled

a guest Aug 21st, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. async = generator => {
  2.   const g = generator();
  3.   (function next(value) {
  4.     const n = g.next(value);
  5.     if (n.done) return;
  6.     n.value.then(next);
  7.   }());
  8. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top