I'm curious why the IIFE is even necessary in this case. There is already a top level await in the `for await` right?
Looks fine IMHO once the IFFE is removed:
for await (const conn of Deno.listen({ port: 4500 })) {
for await (const { respondWith } of Deno.serveHttp(conn)) {
respondWith(new Response("Hello World"));
}
}
Edit: Oh is it so it runs in concurrently and avoids the synchronous handling?