I have such aync code
async.eachLimit(teams, 1000, fetchTeamInfo, exit)
I need to convert it to Promise (bluebird)
I thought will be good to make something like:
Promise.method (teams, 1000, fetchTeamInfo) ->
async.parallelLimit arr.map((a, i) ->
->
iterator a, i, arr
), limit
But not sure is it right way