number milliseconds to delay
valOrFunc or its returned value if it's a function.
delay some milliseconds and then return valOrFunc
Sample:
await xaa.delay(500);
await xaa.delay(500, "Result");
await xaa.delay(500, () => "Result");
number milliseconds to delay
the value to return. If it's a function, call it to get the value. It can be an async function.
valOrFunc or its returned value if it's a function.
delay some milliseconds and then return
valOrFuncSample: