Skip to content

Glossary: Go Beyond the Basics

block

Also written: blocks, blocking

To wait and not return until something happens. `wg.Wait()` blocks until every goroutine is done, and a channel send blocks until someone receives.

Where the book teaches it

Related terms

non-blockingchannel