<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NotificationQueue/PostingStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSPostingStyle"
  },
  "title" : "NotificationQueue.PostingStyle"
}
-->

# NotificationQueue.PostingStyle

The constants that specify when notifications are posted.

```
enum PostingStyle
```

## Overview

These constants are used by the [`enqueue(_:postingStyle:)`](/documentation/Foundation/NotificationQueue/enqueue(_:postingStyle:)) and [`enqueue(_:postingStyle:coalesceMask:forModes:)`](/documentation/Foundation/NotificationQueue/enqueue(_:postingStyle:coalesceMask:forModes:)) methods.

## Topics

### Constants

[`NSPostASAP`](/documentation/Foundation/NotificationQueue/PostingStyle/asap)

The notification is posted at the end of the current notification callout or timer.

[`NSPostWhenIdle`](/documentation/Foundation/NotificationQueue/PostingStyle/whenIdle)

The notification is posted when the run loop is idle.

[`NSPostNow`](/documentation/Foundation/NotificationQueue/PostingStyle/now)

The notification is posted immediately after coalescing.

## Relationships

### Conforms To

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)