function resolvePending() {
            if (leadingCall) {
                leadingCall = false;
                callback();
            }
            if (trailingCall) {
                proxy();
            }
        }
Invokes the original callback function and schedules new invocation if
the "proxy" was called during current request.

@returns {void}