Skip to content

postageapp/e8r

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

e8r

E8R is a series of exensions to Enumerable to expand the contexts in which that approach can be used.

The initial targets are:

  • Async tasks
  • Threads using an optional thread pool
  • Ractors, using an optional ractor pool

This is currently an experimental project. The names are all arbitrary and subject to change.

Installation

Add to your Gemfile:

gem 'e8r'

Then:

bundle install

Usage

E8R patches into Enumerable and Enumerator to add these new capabilities.

Async

example = (1..100).to_a
accum = [ ]

example.async do |e|
  Async do
    accum << e * 2
  end
end.wait

accum

About

Enumerator Superset

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages