Skip to main content

Reaper

Type Alias Reaper 

Source
pub type Reaper = Box<dyn FnMut(&mut PipelineWorld, Entity) + Send>;
Expand description

The daemon-installed hook run just before a terminal agent’s entity is despawned (reaped). It receives the world and the entity while both are still valid, so the daemon can release per-agent resources the runtime doesn’t know about - tearing down the agent’s sandbox and dropping its tool state. Installed with WorldHost::set_reaper; a no-op when none is set.

Aliased Type§

pub struct Reaper(/* private fields */);