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}
     */
Invokes the original callback function and schedules new invocation if
the "proxy" was called during current request.

@returns {void}
Invokes the original callback function and schedules new invocation if the " proxy " was called during current request . @returns { void }
function resolvePending() {
      if (leadingCall) {
        leadingCall = false
        callback()
      }
      if (trailingCall) {
        proxy()
      }
    }
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.
Invokes the original callback function and schedules new invocation if the " proxy " was called during current request .