(clock quartz.Clock)
| 116 | } |
| 117 | |
| 118 | func WithClock(clock quartz.Clock) EventEmitterOption { |
| 119 | return func(e *EventEmitter) { |
| 120 | e.clock = clock |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | func NewEventEmitter(opts ...EventEmitterOption) *EventEmitter { |
| 125 | e := &EventEmitter{ |
no outgoing calls