MCPcopy Index your code
hub / github.com/koding/kite / RemoveCallback

Method RemoveCallback

dnode/scrubber.go:24–28  ·  view source on GitHub ↗

RemoveCallback removes the callback with id from callbacks. Can be used to remove unused callbacks to free memory.

(id uint64)

Source from the content-addressed store, hash-verified

22// RemoveCallback removes the callback with id from callbacks.
23// Can be used to remove unused callbacks to free memory.
24func (s *Scrubber) RemoveCallback(id uint64) {
25 s.Lock()
26 delete(s.callbacks, id)
27 s.Unlock()
28}
29
30func (s *Scrubber) GetCallback(id uint64) func(*Partial) {
31 s.Lock()

Callers 3

sendMethodMethod · 0.80
removeCallbacksMethod · 0.80
makeResponseCallbackMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected