22 lines
568 B
Objective-C
22 lines
568 B
Objective-C
// OCHamcrest by Jon Reid, https://qualitycoding.org/
|
|
// Copyright 2019 hamcrest.org. See LICENSE.txt
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
/*!
|
|
* @abstract Runs runloop until fulfilled, or timeout is reached.
|
|
* @discussion Based on http://bou.io/CTTRunLoopRunUntil.html
|
|
*/
|
|
@interface HCRunloopRunner : NSObject
|
|
|
|
- (instancetype)initWithFulfillmentBlock:(BOOL (^)(void))fulfillmentBlock NS_DESIGNATED_INITIALIZER;
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
- (void)runUntilFulfilledOrTimeout:(CFTimeInterval)timeout;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|