mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
12 lines
493 B
Objective-C
Executable file
12 lines
493 B
Objective-C
Executable file
#import <Foundation/Foundation.h>
|
|
|
|
@interface JNWThrottledBlock : NSObject
|
|
|
|
// Runs the block after the buffer time _only_ if another call with the same identifier is not received
|
|
// within the buffer time. If a new call is received within that time period the buffer will be reset.
|
|
// The block will be run on the main queue.
|
|
//
|
|
// Identifier and block must not be nil.
|
|
+ (void)runBlock:(void (^)(void))block withIdentifier:(NSString *)identifier throttle:(CFTimeInterval)bufferTime;
|
|
|
|
@end
|