MCPcopy Index your code
hub / github.com/coder/coder / SubscribeWithErr

Method SubscribeWithErr

coderd/database/pubsub/pubsub_linux_test.go:393–395  ·  view source on GitHub ↗
(event string, listener pubsub.ListenerWithErr)

Source from the content-addressed store, hash-verified

391}
392
393func (s *racyPubsub) SubscribeWithErr(event string, listener pubsub.ListenerWithErr) (cancel func(), err error) {
394 return s.Pubsub.SubscribeWithErr(event, listener)
395}
396
397func (s *racyPubsub) Publish(event string, message []byte) error {
398 err := s.Pubsub.Publish(event, []byte("nonsense"))

Callers

nothing calls this directly

Calls 1

SubscribeWithErrMethod · 0.65

Tested by

no test coverage detected