MCPcopy Create free account
hub / github.com/riverqueue/river / Start

Method Start

internal/maintenance/queue_maintainer_test.go:40–56  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

38}
39
40func (s *testService) Start(ctx context.Context) error {
41 ctx, shouldStart, started, stopped := s.StartInit(ctx)
42 if !shouldStart {
43 return nil
44 }
45
46 go func() {
47 started()
48 defer stopped()
49
50 s.testSignals.started.Signal(struct{}{})
51 <-ctx.Done()
52 s.testSignals.returning.Signal(struct{}{})
53 }()
54
55 return nil
56}
57
58type testServiceTestSignals struct {
59 returning testsignal.TestSignal[struct{}]

Callers

nothing calls this directly

Calls 3

StartInitMethod · 0.80
SignalMethod · 0.80
DoneMethod · 0.80

Tested by

no test coverage detected