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

Function WithClock

lib/httpapi/events.go:118–122  ·  view source on GitHub ↗
(clock quartz.Clock)

Source from the content-addressed store, hash-verified

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

Callers 1

TestEventEmitterFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestEventEmitterFunction · 0.68