paint-brush
A Quick Coding Lesson On Go's ‘WaitGroup’ (vs. JavaScript's ‘PromiseAll’)by@wagslane
257 reads

A Quick Coding Lesson On Go's ‘WaitGroup’ (vs. JavaScript's ‘PromiseAll’)

by Lane Wagner4mJuly 27th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

A Quick Coding Lesson on Go's 'WaitGroup' (vs. JavaScript's 'PromiseAll) is a quick coding lesson on how to use Go's WaitGroup type. In Go, we want each network call to the server (the fetch() calls) to happen at the same time. In order to make sure that we wait for all of our functions to complete, but still allow them to execute at same time, we use a WaitGroup. Go uses the standard sync package's "WaitGroup" type to perform high-latency functions.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - A Quick Coding Lesson On Go's ‘WaitGroup’ (vs. JavaScript's ‘PromiseAll’)
Lane Wagner HackerNoon profile picture
Lane Wagner

Lane Wagner

@wagslane

Founder of Boot.dev. Whining about coding sins since 2011. Committing coding sins for the same.

About @wagslane
LEARN MORE ABOUT @WAGSLANE'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Lane Wagner HackerNoon profile picture
Lane Wagner@wagslane
Founder of Boot.dev. Whining about coding sins since 2011. Committing coding sins for the same.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here