MCPcopy Create free account
hub / github.com/google/go-cloud / NewDriverSub

Function NewDriverSub

pubsub/pubsub_test.go:64–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62}
63
64func NewDriverSub() *driverSub {
65 ds := &driverSub{
66 sem: make(chan struct{}, 1),
67 }
68 ds.sem <- struct{}{}
69 return ds
70}
71
72func (s *driverSub) ReceiveBatch(ctx context.Context, maxMessages int) ([]*driver.Message, error) {
73 for {

Callers 5

TestSendReceiveFunction · 0.85
TestCancelSendFunction · 0.85
TestCancelReceiveFunction · 0.85
TestOpenTelemetryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected