parallel.cr

[WIP] Parallel processing in Crystal

Parallel.cr

Parallel processing in Crystal

Parallel.each(1..10) do |x|
  # CPU heavy task...
  puts x
end
Parallel.each(['a', 'b', 'c']) do |x|
  # CPU heavy task...
  puts x
end

Installation

Add this to your application's shard.yml:

dependencies:
  parallel:
    github: hugoabonizio/parallel

Usage

require "parallel"

TODO: Write usage instructions here

Development

TODO: Write development instructions here

Contributing

  1. Fork it ( https://github.com/hugoabonizio/parallel.cr/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

Repository

parallel.cr

Owner
Statistic
  • 0
  • 0
  • 0
  • 0
  • 0
  • over 7 years ago
  • June 5, 2016
License

MIT License

Links
Synced at

Fri, 03 May 2024 00:50:05 GMT

Languages