MCPcopy
hub / github.com/WireGuard/wireguard-go / Wait

Method Wait

device/device.go:402–404  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

400}
401
402func (device *Device) Wait() chan struct{} {
403 return device.closed
404}
405
406func (device *Device) SendKeepalivesToPeersWithCurrentKeypair() {
407 if !device.isUp() {

Callers 15

mainFunction · 0.95
mainFunction · 0.95
TestFormattingFunction · 0.80
CloseMethod · 0.80
newOutboundQueueFunction · 0.80
newInboundQueueFunction · 0.80
newHandshakeQueueFunction · 0.80
TestUpDownFunction · 0.80
TestConcurrencySafetyFunction · 0.80
BenchmarkThroughputFunction · 0.80
NewDeviceFunction · 0.80
CloseMethod · 0.80

Implementers 4

NativeTuntun/tun_linux.go
netTuntun/netstack/tun.go
chTuntun/tuntest/tuntest.go
fakeTUNDeviceSizeddevice/device_test.go

Calls

no outgoing calls

Tested by 10

TestFormattingFunction · 0.64
TestUpDownFunction · 0.64
TestConcurrencySafetyFunction · 0.64
BenchmarkThroughputFunction · 0.64
TestWaitPoolFunction · 0.64
BenchmarkWaitPoolFunction · 0.64
BenchmarkWaitPoolEmptyFunction · 0.64
BenchmarkSyncPoolFunction · 0.64
TestMessageReadModeFunction · 0.64
TestListenConnectRaceFunction · 0.64