Sha256: 2c8acdb561e2c880bed231df725e468e5d273bfb353d92ff9f32b61cd295bba6

Contents?: true

Size: 864 Bytes

Versions: 1

Compression:

Stored size: 864 Bytes

Contents

# ZTK

Zachary's Toolkit

## Installation

Add this line to your application's Gemfile:

    gem 'ztk'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install ztk

## Usage

### Parallel

Parallel Processing Class

This class can be used to easily run iterative and linear processes in a parallel manner.

Example:

    parallel = ZTK::Parallel.new
    20.times do |x|
      parallel.process do
        x
      end
    end
    parallel.waitall
    parallel.results
    => [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19]

### Logger

Logging Class

This is a logging class based off the ruby core Logger class; but with very verbose logging information, adding PID, micro second timing to log messages.  It favors passing messages via blocks in order to speed up execution when log messages do not need to be yielded.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ztk-0.0.3 README.md