An open API service indexing awesome lists of open source software.

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)

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)