@libei There is a lot going on here. I will say that in general, I do not like using async stuff with notifications. Are you sure you want to do that?
deinit is a known problem but today, I have no solutions
@mattiem OK, my decision is switch back to old NotificationCenter.addObserver(_:selector:name:object:) API...
But it looks like bypassed MainActor checks.