lib/utils/promiseUtils/after.js
function after(obj, func) {
  if (isPromise(obj)) {
    return obj.then(func);
  } else {
    return func(obj);
  }
}
function after(obj, func) {
  if (isPromise(obj)) {
    return obj.then(func);
  } else {
    return func(obj);
  }
}
function after ( obj , func ) { if ( isPromise ( obj ) ) { return obj . then ( func ) ; } else { return func ( obj ) ; } }
Call `func` after `obj` has been resolved. Call `func` synchronously if `obj` is not a promise for performance reasons.
Call func after obj has been resolved . Call func synchronously if obj is not a promise for performance reasons .