MCPcopy Index your code
hub / github.com/apache/answer / RegisterHandler

Method RegisterHandler

internal/base/queue/queue.go:34–34  ·  view source on GitHub ↗

RegisterHandler sets the handler function for processing messages.

(handler func(ctx context.Context, msg T) error)

Source from the content-addressed store, hash-verified

32
33 // RegisterHandler sets the handler function for processing messages.
34 RegisterHandler(handler func(ctx context.Context, msg T) error)
35
36 // Close gracefully shuts down the queue, waiting for pending messages to be processed.
37 Close()

Callers 12

NewServiceFunction · 0.65
NewActivityCommonFunction · 0.65
NewNotificationCommonFunction · 0.65
NewBadgeEventServiceFunction · 0.65
TestQueue_SendAndReceiveFunction · 0.65
TestQueue_CloseFunction · 0.65
TestQueue_ConcurrentSendFunction · 0.65
TestQueue_SendCloseRaceFunction · 0.65

Calls

no outgoing calls

Tested by 7

TestQueue_SendAndReceiveFunction · 0.52
TestQueue_CloseFunction · 0.52
TestQueue_ConcurrentSendFunction · 0.52
TestQueue_SendCloseRaceFunction · 0.52