Skip to content

shawnstephens/lazy_timed_threadlocal

Repository files navigation

LazyTimedThreadlocal

Lazy initializes a proc attaching it to the current thread. Also allows a a timeout proc for execution when retrieving a stored object that hasn't been used a configurable number of seconds since the former request.

Installation

Add this line to your application's Gemfile:

gem 'lazy_timed_threadlocal'

And then execute:

$ bundle

Or install it yourself as:

$ gem install lazy_timed_threadlocal

Usage

TODO: Write usage instructions here

Contributing

  1. Fork it ( https://github.com/[my-github-username]/lazy_timed_threadlocal/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

About

Lazy initializing threadlocal utility with timeout capabilities.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages