makeNotification(_:)
Converts a posted main actor message into a notification for any observers.
Declaration
@MainActor static func makeNotification(_ message: Self) -> NotificationParameters
- message:
The posted
MainActorMessage.
Return Value
The converted Notification.
Discussion
To implement this method in your own MainActorMessage conformance, use the properties defined by the message to populate the Notification’s userInfo.