We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nodejs:
const express = require("express"); const app = express(); app.get('/', function (req, res) { res.write('hello\n'); setTimeout(() => { res.write('world'); res.end(); }, 5000); }); app.listen(3000);
When curl http://localhost:3000, it will show hello first, then wait 5 seconds show world.
curl http://localhost:3000
hello
world
But it shows hello world in 5 seconds together in Deno.
hello world
import express from "npm:[email protected]"; const app = express(); app.get("/", (req, res) => { res.write("hello\n"); setTimeout(() => { res.write("world"); res.end(); }, 5000); }); app.listen(3000);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
nodejs:
When
curl http://localhost:3000
, it will showhello
first, then wait 5 seconds showworld
.But it shows
hello world
in 5 seconds together in Deno.The text was updated successfully, but these errors were encountered: