MCPcopy
hub / github.com/lxzan/gws / Get

Method Get

internal/pool.go:94–96  ·  view source on GitHub ↗

Get 从池中获取一个值 gets a value from the pool

()

Source from the content-addressed store, hash-verified

92// Get 从池中获取一个值
93// gets a value from the pool
94func (c *Pool[T]) Get() T {
95 return c.p.Get().(T)
96}

Callers 15

readMessageMethod · 0.45
InitMethod · 0.45
WithExtraHeaderMethod · 0.45
WithSubProtocolMethod · 0.45
hijackMethod · 0.45
writeErrMethod · 0.45
doUpgradeFromConnMethod · 0.45
RunListenerMethod · 0.45
getBigDeflaterMethod · 0.45
splitReaderMethod · 0.45
writeMethod · 0.45
WriteToMethod · 0.45

Calls

no outgoing calls

Tested by 10

TestDefaultUpgraderFunction · 0.36
TestCompressServerOptionFunction · 0.36
TestBufferPoolFunction · 0.36
TestPoolFunction · 0.36
TestPool_GetFunction · 0.36
validateFunction · 0.36
TestQueue_RangeFunction · 0.36
TestQueue_AddrFunction · 0.36
TestDeque_UpdateFunction · 0.36
TestQueue_RandomFunction · 0.36