Contents

makeNotification(_:)

Converts a posted main actor message into a notification for any observers.

Declaration

@MainActor static func makeNotification(_ message: Self) -> Notification

Parameters

  • 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.

See Also

Converting between messages and notifications