MCPcopy
hub / github.com/nats-io/nats.go / run

Method run

micro/service.go:501–509  ·  view source on GitHub ↗

dispatch is responsible for calling any async callbacks

()

Source from the content-addressed store, hash-verified

499
500// dispatch is responsible for calling any async callbacks
501func (ac *asyncCallbacksHandler) run() {
502 for {
503 f, ok := <-ac.cbQueue
504 if !ok || f == nil {
505 return
506 }
507 f()
508 }
509}
510
511// dispatch is responsible for calling any async callbacks
512func (ac *asyncCallbacksHandler) push(f func()) {

Callers 1

AddServiceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected