MCPcopy
hub / github.com/grpc/grpc-go / unregister

Method unregister

internal/leakcheck/leakcheck.go:425–429  ·  view source on GitHub ↗

unregister removes the ID.

(id *int)

Source from the content-addressed store, hash-verified

423
424// unregister removes the ID.
425func (rt *reporterTracker) unregister(id *int) {
426 rt.mu.Lock()
427 defer rt.mu.Unlock()
428 delete(rt.allocations, id)
429}
430
431// leakedStackTraces returns formatted stack traces for all currently registered
432// reporters.

Callers 1

TrackAsyncReportersFunction · 0.80

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected