Instance Method
hasConsumer(matching:)
Returns a Boolean value indicating whether the engine contains a consumer that satisfies the given predicate.
func hasConsumer(matching predicate: (any DiagnosticConsumer) throws -> Bool) rethrows -> Bool
Parameters
predicateA closure that takes one of the engine’s consumers as its argument and returns a Boolean value that indicates whether the passed consumer represents a match.
Return Value
true if the engine contains a consumer that satisfies predicate; otherwise, false.