Instance Method
willResignActive()
Override to perform teardown before the interactor becomes inactive.
func willResignActive() async
Mentioned In
Discussion
Runs while the lifecycle still observes isActive == true. Use it to flush state, persist data, or notify the listener of a clean shutdown. You do not need to manually cancel tasks spawned via task(priority:_:) — the lifecycle cancels them after this method returns.
The default implementation is a no-op.