daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest Jan 18th, 2019 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   test: {
  2.     subscribe: (parent, args, context) => {
  3.       return new Promise((e) => {
  4.         console.log("in promise", e);
  5.         setInterval(() => {
  6.           e({
  7.             [Symbol.asyncIterator]: AsyncIterator<VoidPayload | null> {
  8.               return { success: true } as VoidPayload;
  9.             }
  10.           } as AsyncIterable<VoidPayload | null>);
  11.         }, 250);
  12.         return {
  13.           next: (e) => {
  14.             console.log("NEXT", e);
  15.             return {
  16.               success: true,
  17.             };
  18.           },
  19.         };
  20.       });
  21.     },
  22.   },
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