XCPredicateExpectationHandler

Type Alias XCPredicateExpectationHandler 

Source
pub type XCPredicateExpectationHandler = *mut DynBlock<dyn Fn() -> Bool>;
Available on crate feature block2 only.
Expand description

Handler called when evaluating the predicate against the object returns true. If the handler is not provided the first successful evaluation will fulfill the expectation. If provided, the handler will be queried each time the notification is received to determine whether the expectation should be fulfilled or not.

See also Apple’s documentation