title: AbortController not terminating fetch request
body: <p>I'm attempting to create a helper function to automatically timeout <code>fetch</code> requests after 2000 ms. The following code does not abort the fetch request, and instead prints the request as normal after 4000 ms. The code appears to be working in browser but not in node.</p>
  
  <pre class="lang-js prettyprint-override"><code>require('isomorphic-fetch');
  const AbortController = require('abort-controller');
  
  const fetchTimeout = async url =&gt; {
    const controller = new AbortController();
  
    setTimeout(() =&gt; {
      controller.abort();
    }, 2000);
  
    return fetch(url, { signal: controller.signal })
      .then(response =&gt; {
        return response;
      })
      .catch(error =&gt; {
        throw new Error(error.message);
      });
  };
  
  const getStock = async () =&gt; {
    return await fetchTimeout('https://httpbin.org/delay/4').then(data =&gt;
      data.json()
    );
  };
  
  ( async () =&gt; 
  console.log(await getStock())
  )();
  </code></pre>