(size uint)
| 100 | type EventEmitterOption func(*EventEmitter) |
| 101 | |
| 102 | func 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 | |
| 112 | func WithAgentType(agentType mf.AgentType) EventEmitterOption { |
| 113 | return func(e *EventEmitter) { |
no outgoing calls