INNER CODE UNIT · TypeScript

unlisten

enisdenjo/graphql-sse · src/client.ts:490

      const unlisten = client.onDispose(() => {
        unlisten();
        control.abort();
      });

      (async () => {
        let retryingErr = null as unknown,
          retries = 0;

        for (;;) {
          try {
            if (retryingErr) {
              await retry(retries);

              // connection might've been aborted while waiting for retry
              if (control.signal.aborted)
                throw new Error('Connection aborted by the client');

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…