0.0
No commit activity in last 3 years
No release in over 3 years
Helper utilities gem used in a number of my projects. Includes future wrappers and provides some override methods for Ruby core classes that make defining behaviours easier to code.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Thomas Utils

Thomas Utils is a gem to provide some basic helper classes to be used with my other projects.

Installation

Add this line to your application's Gemfile:

gem 'thomas_utils', git: 'https://github.com/thomasrogers03/thomas_utils.git'

Current Features

  • FutureWrapper: Apply some additional logic to your futures before returning a value. Supports futures implementing #join and #get.
  • ObjectStream: Incrementally write object values to a stream, flushing them in groups to a provided block.
  • PeriodicFlusher: To be used with ObjectStream; periodically calls #flush on the buffer, running the block on regular intervals.