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

Function newInboundQueue

device/channels.go:44–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42}
43
44func newInboundQueue() *inboundQueue {
45 q := &inboundQueue{
46 c: make(chan *QueueInboundElementsContainer, QueueInboundSize),
47 }
48 q.wg.Add(1)
49 go func() {
50 q.wg.Wait()
51 close(q.c)
52 }()
53 return q
54}
55
56// A handshakeQueue is similar to an outboundQueue; see those docs.
57type handshakeQueue struct {

Callers 1

NewDeviceFunction · 0.85

Calls 1

WaitMethod · 0.80

Tested by

no test coverage detected