Skip to content

Conversation

@pinqy520
Copy link

用如下代码替换了es-promisify

function promisify(fn, handler) {
  return function (...args) {
    return new Promise(function (resolve, reject) {
      fn(...args, handler.bind({ resolve, reject }))
    })
  }
}

@cnpmge
Copy link

cnpmge commented Apr 2, 2020

这个是在哪个文件替换的?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants