waku-tests/delay.js

4 lines
98 B
JavaScript

export default function delay(ms) {
return new Promise((resolve) => setTimeout(resolve, ms));
}