0.0
No release in over 3 years
Low commit activity in last 3 years
BetterThread
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

BetterThread

Ruby's Thread with timeout

bt = BetterThread.new timeout: 3 do
  sleep 5
end

bt.join # joins after 3 seconds

bt.timeout? # true

Installation

Add this line to your application's Gemfile:

gem 'better_thread'

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/matti/better-thread

License

The gem is available as open source under the terms of the MIT License.