1.0.0 • Published 11 years ago
throttle_call v1.0.0
throttle_call
Throttles the number of simultaneous calls to a function
Install
npm install throttle_callUsing
throttle_call = require('throttle_call')
get_image_url = (query, callback) ->
Bing.images query, {}, (error, res2, body) ->
callback [x.MediaUrl for x in body.d.results]
get_image_url_throttled = throttle_call(get_image_url)1.0.0
11 years ago