WaitGroup from Go for Crystal
Add this to your application's shard.yml
:
dependencies:
waitgroup:
github: n7olkachev/waitgroup
require "waitgroup"
wg = WaitGroup.new
wg.add 2
spawn do
sleep 1
wg.done
end
spawn do
wg.done
end
wg.wait
puts "Yay!'
- Fork it ( https://github.com/n7olkachev/waitgroup/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- n7olkachev n7olkachev - creator, maintainer