waitgroup

Version, currently master branch1 version
  • master branchlatestApr 10, 2018

github.com/n7olkachev/waitgroup

WaitGroup for Crystal

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  waitgroup:
    github: n7olkachev/waitgroup
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.24.2
License
MIT
Author
n7olkachev

Dependencies

This version declares no dependencies.

README

WaitGroup

WaitGroup from Go for Crystal

Installation

Add this to your application's shard.yml:

dependencies:
  waitgroup:
    github: n7olkachev/waitgroup

Usage

require "waitgroup"

wg = WaitGroup.new
wg.add 2

spawn do
  sleep 1
  wg.done
end

spawn do
  wg.done
end

wg.wait
puts "Yay!'

Contributing

  1. Fork it ( https://github.com/n7olkachev/waitgroup/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