Sha256: ba43facc5f71869dc0156f31764f51279ab5f6098f5478857c1c4f7446002da8

Contents?: true

Size: 1.25 KB

Versions: 1

Compression:

Stored size: 1.25 KB

Contents

# HotTub
A simple thread-safe pooling gem to use with your preferred http library that support
keep-alive.

## Installation

HotTub is available through [Rubygems](https://rubygems.org/gems/hot_tub) and can be installed via:

    $ gem install hot_tub

## Setup 
    class MyClass
      @@pool = HotTub::Session.new({:size => 2 :client => HotTub::Client::EmSynchronyClient.new('https://google.com'), :never_block => true})

      def self.fetch_results(query)
        @@pool.get(:query => query) # keepalive has be defaulted to true in the client
      end
    end

    MyClass.fetch_results({:foo => "goo"})

## Contributing to HotTub
 
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
* Fork the project
* Start a feature/bugfix branch
* Commit and push until you are happy with your contribution
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hot_tub-0.0.1 README.md