Implementation of CompletableFuture(java) in GO
- wg sync.WaitGroup
Run the given function in goRoutines.
- fn func(wg *sync.waitGroup)
It blocks the call until result is finished
It blocks the call for a specific time and returns if call does not finish in given time
- timeout: time.duration