MCPcopy Create free account
hub / github.com/Hidden-Node/GooseRelayVPN-AndroidClient / C

Method C

internal/carrier/client.go:259–263  ·  view source on GitHub ↗

C returns the current channel to select on. Must be captured before entering select so a concurrent Broadcast() cannot be missed.

()

Source from the content-addressed store, hash-verified

257// C returns the current channel to select on. Must be captured before
258// entering select so a concurrent Broadcast() cannot be missed.
259func (w *waker) C() <-chan struct{} {
260 w.mu.Lock()
261 defer w.mu.Unlock()
262 return w.ch
263}
264
265// Broadcast unblocks all goroutines currently waiting on C().
266func (w *waker) Broadcast() {

Calls

no outgoing calls