How to use p_limit in a meteor method

I have a Meteor method calling a large list of web services. I need to implement a max number of concurrency call as the list is large. I saw that node packages like p-limit or
bottleneck exists, but i don’t know how to integrate them in a Meteor method. Could anyone help me ?
Thanks a lot

Using these within a meteor method should not really be any different than using them in any other context. You’ll just need to mark the function defined for the method as async. You can even return a promise directly from the method and Meteor will resolve it and return the result to the client.