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

Function newOutboundQueue

device/channels.go:26–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24}
25
26func newOutboundQueue() *outboundQueue {
27 q := &outboundQueue{
28 c: make(chan *QueueOutboundElementsContainer, QueueOutboundSize),
29 }
30 q.wg.Add(1)
31 go func() {
32 q.wg.Wait()
33 close(q.c)
34 }()
35 return q
36}
37
38// A inboundQueue is similar to an outboundQueue; see those docs.
39type inboundQueue struct {

Callers 1

NewDeviceFunction · 0.85

Calls 1

WaitMethod · 0.80

Tested by

no test coverage detected