Using NestJs with handlebars, I have the code below
@Post('/foo')
@Render('foo')
async foobar(){
exemple();
return {x: x, y: y};
}
My problem is: I need to call exemaple ()
and not wait for it, proceed toreturn
I tried to Call async/await functions in parallel but the await Promise.all([...])
works only functions calls, i need to call exemple
and render the page (in return)
EDIT--
The exemple()
function is an shell command
var shell = require('shelljs')
shell.exec('some command here')