Common interface for state slices. Implement reset() to participate in cleanup when destroy() is called on the agent.
reset()
destroy()
All built-in state classes implement this. Custom slices can optionally implement it to get automatic cleanup.
Common interface for state slices. Implement
reset()to participate in cleanup whendestroy()is called on the agent.All built-in state classes implement this. Custom slices can optionally implement it to get automatic cleanup.