export function sleep(ms) {
    const DEF_DELAY = 1000;
    return new Promise(resolve => setTimeout(resolve, ms || DEF_DELAY));
}