Function deregister_subscriber

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.

pub fn deregister_subscriber(name: &str) -> Result<bool>

Deregister a global lifecycle event subscriber.

This removes the named subscriber from the process-wide registry.

Parameters

  • name: Global subscriber name to remove.

Returns

A Result containing true when a subscriber was removed and false when the name was not registered.

Errors

Returns an error when the global registry lock cannot be acquired safely.

Notes

Deregistration affects only future event delivery. Already emitted events carry a subscriber snapshot, so queued callbacks from that snapshot may still run after deregistration.