I am trying to understand how nodejs and async funktions work , so i added a long for loop to test if this simple server can answar multiple request when it get a long request (in this case a long for loop).
thanks for the help in advance . and sorry for the bad english
const express = require('express')
const app = express()
const port = 3000
app.get('/',async (req, res) =\> {
x = 1
while(x<(1000000000)*3){x++}
res.send('Hello World!')
})
app.get('/normal',async (req, res) =\> {
res.send('Hello World!')
})
app.listen(port, () =\> {
console.log(`Example app listening on port ${port}`)
})