News for hackers. Stuff that matters.
Re:Let’s make a JavaScript Wait function by CodeWriter23 on Sunday November 12, 2017 @08:46PM (#15683670)
<shrugs> ok

   function multiStepAsyncProcess() {
        hitServer(params, function(err) {
            if(err) {
                handleError(err);
                return;
            }
            multiStepAsyncProcessStep2();
        });
    }

    function multiStepAsyncProcessStep2() {
        hitServer(params, function(err) {
            ...
        });
    }

There are no comments on this comment yet.