How to use the some function from bluebird

Find comprehensive JavaScript bluebird.some code examples handpicked from public code repositorys.

703
704
705
706
707
708
709
710
711
712
  })
  var p2 = resolved('p2')
  var p3 = rejected('p3')
  var p4 = resolved('p4')

  Promise.some([p1, p2, p3, p4], 2).then(function (result) {
    t.deepEqual(result, ['p2', 'p4'])
    t.strictEqual(ins.currTransaction().id, trans.id)
  })
})
fork icon1
star icon0
watch icon1

+ 2 other calls in file

72
73
74
75
76
77
78
79
80
81
}
const queued = [];
const parallel = 20;
const putPromises = objects.map(key => {
    const mustComplete = Math.max(0, queued.length - parallel + 1);
    const result = Promise.some(queued, mustComplete).then(() =>
        s3.putObject({
            Bucket: bucketName,
            Key: key,
            Body: 'somebody',
fork icon0
star icon0
watch icon0

+ 2 other calls in file