MCPcopy Create free account
hub / github.com/coder/agentapi / WithSubscriptionBufSize

Function WithSubscriptionBufSize

lib/httpapi/events.go:102–110  ·  view source on GitHub ↗
(size uint)

Source from the content-addressed store, hash-verified

100type EventEmitterOption func(*EventEmitter)
101
102func WithSubscriptionBufSize(size uint) EventEmitterOption {
103 return func(e *EventEmitter) {
104 if size == 0 {
105 e.subscriptionBufSize = defaultSubscriptionBufSize
106 } else {
107 e.subscriptionBufSize = size
108 }
109 }
110}
111
112func WithAgentType(agentType mf.AgentType) EventEmitterOption {
113 return func(e *EventEmitter) {

Callers 1

TestEventEmitterFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestEventEmitterFunction · 0.68