1.0.0 • Published 10 years ago

throttle_call v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

throttle_call

Throttles the number of simultaneous calls to a function

Install

npm install throttle_call

Using

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)