1
I am performing these functions below in a for
. The functionality is almost doing what I wish, but I wonder if it would be like after running const q = await clientOut.write(p[i])
, wait at least 3 seconds before continuing for
. It is possible to do this?
const dadosMsg = await x.getValueMsg();
for(var i =0;i<dadosMsg.length;i++){
c = await xmlTemplates.xml_16_begin(dadosMsg[i]);
const b = await clientOut.write(c);
console.log(b+' >>>>>>>>>>Entrada');
const p = await xmlTemplates.xml_16_end();
const q = await clientOut.write(p[i])
console.log(q+' >>>>>>>>>>Saida');
}