XCTNSPredicateExpectation.Handler
A handler XCTest calls when evaluating the predicate returns true.
Declaration
typealias Handler = @Sendable () -> BoolReturn Value
Your custom handler should return true if the expectation is considered fulfilled, otherwise false.