//  OCHamcrest by Jon Reid, http://qualitycoding.org/about/
//  Copyright 2016 hamcrest.org. See LICENSE.txt

#import <Foundation/Foundation.h>


/*!
 * @abstract Runs runloop until fulfilled, or timeout is reached.
 */
@interface HCRunloopRunner : NSObject

- (instancetype)initWithFulfillmentBlock:(BOOL (^)())fulfillmentBlock;
- (void)runUntilFulfilledOrTimeout:(CFTimeInterval)timeout;

@end

//  OCHamcrest by Jon Reid, http://qualitycoding.org/about/
//  Copyright 2016 hamcrest.org. See LICENSE.txt

#import <Foundation/Foundation.h>


/*!
 * @abstract Runs runloop until fulfilled, or timeout is reached.
 * @discussion Based on http://bou.io/CTTRunLoopRunUntil.html
 */
@interface HCRunloopRunner : NSObject

- (instancetype)initWithFulfillmentBlock:(BOOL (^)())fulfillmentBlock;
- (void)runUntilFulfilledOrTimeout:(CFTimeInterval)timeout;

@end

Add documentation link to article on runloop
Add documentation link to article on runloop
