@misacek the author of the async method, i.e. you, determines where the method is run, for instance by adding the @MainActor attribute. The caller, i.e. NotificationCenter, can't force the method to run in any particular context.
Topic:
App & System Services
SubTopic:
Notifications
Tags: