---
title: "post(_:subject:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/notificationcenter/post(_:subject:)-5271w"
---

# post(_:subject:)

Posts a given asynchronous message to the notification center.

## Declaration

```swift
func post<Message>(_ message: Message, subject: Message.Subject) where Message : NotificationCenter.AsyncMessage, Message.Subject : AnyObject
```

## Parameters

- `message`: The message to post.
- `subject`: The subject instance that corresponds to the message.

## See Also

### Posting notification messages

- [post(_:subject:)](foundation/notificationcenter/post(_:subject:)-87dbk.md)
- [post(_:)](foundation/notificationcenter/post(_:)-19s7b.md)
- [post(_:)](foundation/notificationcenter/post(_:)-7ia4j.md)
