Context.Done is a method in the golang package called "context" from the code.google.com.p.go.net package. It is used to obtain a channel that signals when the current context is cancelled or done. This method allows for synchronization and termination of operations that depend on the context. When the channel returned by Context.Done is closed, it indicates that the current context has been cancelled or done, enabling the associated operations to be gracefully terminated.
Golang Context.Done - 18 examples found. These are the top rated real world Golang examples of code/google/com/p/go/net/context.Context.Done extracted from open source projects. You can rate examples to help us improve the quality of examples.