inre / fibre

Fiber pool for Ruby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fibre

Fibre - fiber pool with events

Installation

Add this line to your application's Gemfile:

gem 'fibre'

And then execute:

$ bundle

Or install it yourself as:

$ gem install fibre

Initialize pool:

Fibre.pool_size = 10

Usage

Fibre.pool_size = 10
Fibre.pool.checkout do
  puts "runned in fiber"
end

About

Fiber pool for Ruby

License:MIT License


Languages

Language:Ruby 100.0%