Instance Method
deactivate()
Deactivates the interactor.
func deactivate() async
Mentioned In
Discussion
Idempotent: only the first concurrent caller advances past an internal claim flag, so willResignActive() runs at most once per active→inactive transition. After willResignActive() returns, every task spawned via task(priority:_:) is cancelled and the active flag flips to false.