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

Function newSubscriptionManager

subscription_manager.go:33–38  ·  view source on GitHub ↗
(archetype *baseservice.Archetype, subscribeCh <-chan []jobcompleter.CompleterJobUpdated)

Source from the content-addressed store, hash-verified

31}
32
33func newSubscriptionManager(archetype *baseservice.Archetype, subscribeCh <-chan []jobcompleter.CompleterJobUpdated) *subscriptionManager {
34 return baseservice.Init(archetype, &subscriptionManager{
35 subscribeCh: subscribeCh,
36 subscriptions: make(map[int]*eventSubscription),
37 })
38}
39
40// ResetSubscribeChan is used to change the channel that the subscription
41// manager listens on. It must only be called when the subscription manager is

Callers 2

Test_SubscriptionManagerFunction · 0.85
NewClientFunction · 0.85

Calls 1

InitFunction · 0.92

Tested by 1

Test_SubscriptionManagerFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…