waitgroup
Version, currently 1.0.01 version
- 1.0.0latestAug 29, 2022
github.com/dscottboggs/waitgroup
A simple implementation of a Waitgroup for Crystal
2 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
waitgroup:
github: dscottboggs/waitgroup
version: ~> 1.0.0Then run:
shards installshard.yml
- Crystal
1.5.0- License
- MIT
- Author
- D. Scott Boggs
Dependencies
This version declares no dependencies.
README
waitgroup
Simple waitgroup implementation for Crystal.
Installation
-
Add the dependency to your
shard.yml:dependencies: waitgroup: github: dscottboggs/waitgroup -
Run
shards install
Usage
require "waitgroup"
wg = WaitGroup.new
time_taken = Time.measure do
10.times do
wg.spawn do
sleep 1
end
end
wg.wait
end
time_taken.should be_close 1.second,
delta: 0.1.seconds
See the spec file for more examples.
Contributing
- Fork it (https://github.com/dscottboggs/waitgroup/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Verify your changes pass all tests, including formatting and linting with ameba
- Push to the branch (
git push origin my-new-feature) - Create a new Pull Request.
Contributors
- D. Scott Boggs - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
1.0.0- Tagged
- Aug 29, 2022
- Commit
f920b658c8a4- Crystal
1.5.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/dscottboggs/waitgroup
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 15, 2026
- Versions
- 1