https://github.com/peterdee/go-promise-all
Run asynchronous code in parallel using Go routines (Promise.all analog)
https://github.com/peterdee/go-promise-all
golang waitgroup
Last synced: over 1 year ago
JSON representation
Run asynchronous code in parallel using Go routines (Promise.all analog)
- Host: GitHub
- URL: https://github.com/peterdee/go-promise-all
- Owner: peterdee
- License: mit
- Created: 2021-11-22T14:55:36.000Z (over 4 years ago)
- Default Branch: release
- Last Pushed: 2021-11-23T06:54:09.000Z (over 4 years ago)
- Last Synced: 2025-01-21T10:11:16.221Z (over 1 year ago)
- Topics: golang, waitgroup
- Language: Go
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## Emulating Promise.all() in Golang using sync.WaitGroup()
This example shows the usage of `sync.WaitGroup()` that helps with `Promise.all()` emulation.
### Deploy
```shell script
git clone https://github.com/peterdee/go-promise-all
cd ./go-promise-all
```
### Launch
```shell script
go run ./main.go
```
### License
[MIT](LICENSE.md)