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