const saves = ['profile', 'settings']
const done = after(saves.length, () => console.log('done saving!'))
forEach(saves, type => asyncSave({ 'type': type, 'complete': done }))
// => Logs 'done saving!' after the two async saves have completed.
asyncSave啥意思
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…