首页

neallindsay

Karma: 771
Joined: 大约 11 年前
ID: neallindsay

About

const lockify = f => { let lock = Promise.resolve() return (...args) => { const result = lock.then(() => f(...args)) lock = result.catch(() => {}) return result.then(v => v) } }

Submissions

Visit submission history to see stories and comments by neallindsay.