© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
A. FreemanPro Gohttps://doi.org/10.1007/978-1-4842-7355-5_30

30. Coordinating Goroutines

Adam Freeman1  
(1)
London, UK
 
In this chapter, I describe the Go standard library packages with features that are used to coordinate goroutines. Table 30-1 puts the features described in this chapter in context.
Table 30-1

Putting Features for Coordinating Goroutines in Context

Question

Answer

What are they?

These features are useful when an application uses multiple goroutines.

Why are they useful?

The use of goroutines can be complex when they share data or when a goroutine is used to handle a request across multiple API components in a server.

How are they used?

The sync package ...

Get Pro Go: The Complete Guide to Programming Reliable and Efficient Software Using Golang now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.