MCPcopy Create free account
hub / github.com/SeeFlowerX/stackplz / NewEventWorker

Function NewEventWorker

user/event_processor/iworker.go:35–42  ·  view source on GitHub ↗
(uuid string, processor *EventProcessor)

Source from the content-addressed store, hash-verified

33}
34
35func NewEventWorker(uuid string, processor *EventProcessor) IWorker {
36 eWorker := &eventWorker{}
37 eWorker.init(uuid, processor)
38 go func() {
39 eWorker.Run()
40 }()
41 return eWorker
42}
43
44func (this *eventWorker) init(uuid string, processor *EventProcessor) {
45 this.ticker = time.NewTicker(time.Millisecond * 100)

Callers 1

dispatchMethod · 0.85

Calls 2

initMethod · 0.95
RunMethod · 0.95

Tested by

no test coverage detected