package grpcsync
Import Path
google.golang.org/grpc/internal/grpcsync (on go.dev)
Dependency Relation
imports 2 packages, and imported by one package
Involved Source Files
Package grpcsync implements additional synchronization primitives built upon
the sync package.
Package-Level Type Names (only one, which is exported)
Event represents a one-time event that may occur in the future.
c chan struct{}
fired int32
o sync.Once
Done returns a channel that will be closed when Fire is called.
Fire causes e to complete. It is safe to call multiple times, and
concurrently. It returns true iff this call to Fire caused the signaling
channel returned by Done to close.
HasFired returns true if Fire has been called.
func NewEvent() *Event
Package-Level Functions (only one, which is exported)
NewEvent returns a new, ready-to-use Event.
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |