(args...) -> Promise and turns it into
(args...) -> Promise with limited concurrency.
Useful for capping expensive async calls (e.g. image processing).
Arguments are proxied to the wrapped function.
Assumes your promise library of choice defines
var Promise = ;var gate = Promise // pass promise lib of your choicevar someFunctionReturningPromise = gate;
But actually, it's about ethics in game journalism.