Joined 2/20/2014, 4:10:58 PM has 776 karma
const lockify = f => { let lock = Promise.resolve() return (...args) => { const result = lock.then(() => f(...args)) lock = result.catch(() => {}) return result.then(v => v) } }
This user hasn't posted yet