Why do we await next when using koa routers? : <p>Why do we do this</p>

<pre><code>router.get('/data', async (ctx, next) =&gt; {
  ctx.body = dummyjson.parse(data);
  await next();
});

router.get('/data/:x', async (ctx, next) =&gt; {
  const newData = dataRepeat.replace('%(x)', ctx.params.x);
  ctx.body = dummyjson.parse(newData);
  await next();
});
</code></pre>

<p>What is the use of <code>await next()</code></p>

<p>It would work just fine without that. Similar thing was expected with koa 1. <code>yield next</code> was added at the end of the router.</p>
