Contents

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 : AnyObject

Parameters

  • message:

    The message to post.

  • subject:

    The subject instance that corresponds to the message.

See Also

Posting notification messages