post(_:subject:)
Posts a given main actor message to the notification center.
Declaration
@MainActor func post<Message>(_ message: Message, subject: Message.Subject) where Message : NotificationCenter.MainActorMessage, Message.Subject : AnyObjectParameters
- message:
The message to post.
- subject:
The subject instance that corresponds to the message.