1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| //
| // OKTimer.h
| // OneKit
| //
| // Created by bob on 2020/4/26.
| //
|
| #import <Foundation/Foundation.h>
|
| NS_ASSUME_NONNULL_BEGIN
|
| @interface OKTimer : NSObject
|
| /**
| @param interval interval in millisecond, not second
| */
| + (OKTimer *)timerWithInterval:(long long)interval
| repeats:(BOOL)repeats
| queue:(_Nullable dispatch_queue_t)queue
| action:(dispatch_block_t)action;
|
| - (void)cancel;
|
| @end
|
| NS_ASSUME_NONNULL_END
|
|