XCTDarwinNotificationExpectationHandler

Type Alias XCTDarwinNotificationExpectationHandler 

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

Handler called when the expectation has received the Darwin notification. If the handler is not provided the first posting of the notification 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. This allows the caller to check Darwin state variables or perform other logic beyond simply verifying that the notification has been posted.

See also Apple’s documentation