Skip to content

n7olkachev/waitgroup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

WaitGroup for Crystal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published