Sha256: 5f7ac1e463a9ebb70ac9c87e0a3ae04bc7a677be5fc870af37f3c66daa920138

Contents?: true

Size: 733 Bytes

Versions: 1

Compression:

Stored size: 733 Bytes

Contents

# proc-throttle [![Build Status](https://secure.travis-ci.org/youpy/proc-throttle.png)](http://travis-ci.org/youpy/proc-throttle)

Proc#throttle: throttling calls

## Installation

Add this line to your application's Gemfile:

    gem 'proc-throttle'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install proc-throttle

## Usage

    count = 0

    proc = Proc.new do
      count += 1
    end.throttle(1)

    10.times do
      proc.call
    end

    count // => 1


## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Added some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
proc-throttle-0.1.1 README.md