MCPcopy Create free account
hub / github.com/AI45Lab/Code / unregister

Method unregister

core/src/hooks/engine.rs:258–261  ·  view source on GitHub ↗

Unregister a hook

(&self, hook_id: &str)

Source from the content-addressed store, hash-verified

256
257 /// Unregister a hook
258 pub fn unregister(&self, hook_id: &str) -> Option<Hook> {
259 let mut hooks = write_or_recover(&self.hooks);
260 hooks.remove(hook_id)
261 }
262
263 /// Register a handler
264 pub fn register_handler(&self, hook_id: &str, handler: Arc<dyn HookHandler>) {

Calls 2

write_or_recoverFunction · 0.85
removeMethod · 0.80