server/utils.js
/**
 * Function to set a fixed wait, useful only if called inside async function.
 * @param {number} time in ms.
 * @returns
 */
Function to set a fixed wait, useful only if called inside async function.
@param {number} time in ms.
@returns
Function to set a fixed wait useful only if called inside async function . @param { number } time in ms . @returns
async function waitBuffer(time) {
  return new Promise(() => {
    setTimeout(() => console.log("wait buffer."), time);
  })
}
async function waitBuffer ( time ) { return new Promise ( ( ) => { setTimeout ( ( ) => console . log ( "wait buffer." ) , time ) ; } ) }
Function to set a fixed wait, useful only if called inside async function.
Function to set a fixed wait useful only if called inside async function .