Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yulingtianxia committed Dec 4, 2017
1 parent f0a191f commit 4bc1e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MTDemo/MTDemo/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ - (void)viewDidLoad {
// [MTEngine.defaultEngine applyRule:rule];

// 跟上面的用法等价
[self.stub mt_limitSelector:@selector(foo:) oncePerDuration:1 usingMode:MTPerformModeDebounce onMessageQueue:dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)];
[self.stub mt_limitSelector:@selector(foo:) oncePerDuration:0.5 usingMode:MTPerformModeDebounce onMessageQueue:dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)];
NSArray<MTRule *> *rules = self.stub.mt_allRules;
for (MTRule *rule in rules) {
NSLog(@"%@", rule);
Expand Down

0 comments on commit 4bc1e71

Please sign in to comment.