MCPcopy
hub / github.com/grpc/grpc-go / NewChannelWithSize

Function NewChannelWithSize

internal/testutils/channel.go:116–118  ·  view source on GitHub ↗

NewChannelWithSize returns a new Channel with a buffer of bufSize.

(bufSize int)

Source from the content-addressed store, hash-verified

114
115// NewChannelWithSize returns a new Channel with a buffer of bufSize.
116func NewChannelWithSize(bufSize int) *Channel {
117 return &Channel{C: make(chan any, bufSize)}
118}

Callers 9

TestConfigSelectorMethod · 0.92
newTrackingPoolFunction · 0.92
NewTestMetricsRecorderFunction · 0.92
NewServerFunction · 0.92
TestResolveTimeoutMethod · 0.92
NewChannelFunction · 0.70

Calls

no outgoing calls