XCTNSNotificationExpectation.Handler
A custom handler to be called when a matching notification is received.
Declaration
typealias Handler = @Sendable (Notification) -> BoolParameters
- notification:
The notification object.
Return Value
Your custom handler should return true if the expectation is considered fulfilled after the notification is received, otherwise false.