core/lifecycle/close_notifier library

Mixins

CloseNotifier
Lets the lifecycle OWNER (core) react when a model built by a separate engine package closes. The package constructs the model; core registers a reset callback via addCloseListener; the concrete model fires the listeners from its own close()'s finally. Best practice: the engine createModel(spec, config) contract stays a pure factory — no lifecycle callback leaks into the contract that third-party engines implement.