Deno just released v1.0.
When I was checking getting started guild I show some unusual code.
import { serve } from "https://deno.land/[email protected]/http/server.ts";
const s = serve({ port: 8000 });
console.log("http://localhost:8000/");
for await (const req of s) {
req.respond({ body: "Hello World\n" });
}
If you see for loop there is await without async.
So I'm wondering, is javascript async/await and deno await both are same or it's different?