Training
Module
Learn how concurrency works in Go - Training
Understand more about concurrency, one of the most unique features in Go.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
All functions in this API are safe to call concurrently from different threads. However, each object passed as a parameter to the functions have specific threading behavior, as described below.
The following handles are single threaded and do not support concurrent operations for a particular instance:
The following handles are free threaded and do support concurrent operations for a particular instance:
For all these handles, threading is defined in terms of operations (not function calls). An operation is defined differently for functions invoked synchronously versus functions invoked asynchronously:
Failure to follow the threading contract for an object will result in undefined behavior.
Training
Module
Learn how concurrency works in Go - Training
Understand more about concurrency, one of the most unique features in Go.