ox_modules/module-mailinator.js
function wait() {
        var isDone = false;
        var start = new Date().getTime();

        var interval = setInterval(() => {
            var now = new Date().getTime();
            if ((now - start) >= _retryInterval){
                clearInterval(interval);
                isDone = true;
            }
        }, 50);

        deasync.loopWhile(() => !isDone);
    }
function wait() {
        var isDone = false;
        var start = new Date().getTime();

        var interval = setInterval(() => {
            var now = new Date().getTime();
            if ((now - start) >= _retryInterval){
                clearInterval(interval);
                isDone = true;
            }
        }, 50);

        deasync.loopWhile(() => !isDone);
    }
function wait ( ) { var isDone = false ; var start = new Date ( ) . getTime ( ) ; var interval = setInterval ( ( ) => { var now = new Date ( ) . getTime ( ) ; if ( ( now - start ) >= _retryInterval ) { clearInterval ( interval ) ; isDone = true ; } } , 50 ) ; deasync . loopWhile ( ( ) => ! isDone ) ; }
wait synchronously in a non-blocking manner
wait synchronously in a non - blocking manner