function promisify(value) {
  if ((0, _isPromise["default"])(value)) {
    // is promise
    return value;
  } else {
    // is non-promise
    return Promise.resolve(value);
  }
}
takes promise or non-promise,
returns promise
@param  {any} value
@return {Promise}