MCPcopy Index your code
hub / github.com/riverqueue/river / Start

Method Start

rivershared/startstop/start_stop.go:21–21  ·  view source on GitHub ↗

Start starts a service. Services are responsible for backgrounding themselves, so this function should be invoked synchronously. Services may return an error if they have trouble starting up, so the caller should wait and respond to the error if necessary.

(ctx context.Context)

Source from the content-addressed store, hash-verified

19 // may return an error if they have trouble starting up, so the caller
20 // should wait and respond to the error if necessary.
21 Start(ctx context.Context) error
22
23 // Started returns a channel that's closed when a service finishes starting,
24 // or if failed to start and is stopped instead. It can be used in

Callers 15

Example_uniqueJobFunction · 0.65
Example_jobArgsHooksFunction · 0.65
Example_jobSnoozeFunction · 0.65
Example_subscriptionFunction · 0.65
Example_insertAndWorkFunction · 0.65
Example_periodicJobFunction · 0.65
Example_cronJobFunction · 0.65
Example_batchInsertFunction · 0.65
Test_SubscriptionManagerFunction · 0.65
Example_resumableCursorFunction · 0.65

Calls

no outgoing calls

Tested by 15

Example_uniqueJobFunction · 0.52
Example_jobArgsHooksFunction · 0.52
Example_jobSnoozeFunction · 0.52
Example_subscriptionFunction · 0.52
Example_insertAndWorkFunction · 0.52
Example_periodicJobFunction · 0.52
Example_cronJobFunction · 0.52
Example_batchInsertFunction · 0.52
Test_SubscriptionManagerFunction · 0.52
Example_resumableCursorFunction · 0.52