sensitivity.io for iOS & macOS  1.1.4
FutureWatcher.h
1 //
2 // FutureWatcher.h
3 //
4 // Created by Andreea ERDELYI <andreea.erdelyi@cososys.com>
5 //
6 // Copyright (C) 2017 CoSoSys Ltd team@sensitivity.io
7 // CoSoSys Ltd. All rights reserved.
8 // Please see the COPYING for more details.
9 //
10 
11 #import <Foundation/Foundation.h>
12 
13 @protocol Future;
14 @protocol FutureWatcherDelegate;
15 
19 @interface FutureWatcher : NSObject
20 
24 @property (nonatomic, strong, nullable) id<Future> future;
28 @property (nonatomic, weak, nullable) id<FutureWatcherDelegate> delegate;
29 
37 + (void) setTimeInterval:(NSTimeInterval)ti;
38 
39 @end
40 
41 
45 @protocol FutureWatcherDelegate <NSObject>
46 
47 @optional
53 - (void) started:(FutureWatcher* _Nonnull)futureWatcher;
59 - (void) finished:(FutureWatcher* _Nonnull)futureWatcher;
65 - (void) canceled:(FutureWatcher* _Nonnull)futureWatcher;
71 - (void) paused:(FutureWatcher* _Nonnull)futureWatcher;
77 - (void) resumed:(FutureWatcher* _Nonnull)futureWatcher;
78 
79 @end
id< FutureWatcherDelegate > delegate
Definition: FutureWatcher.h:28
Definition: FutureWatcher.h:19
id< Future > future
Definition: FutureWatcher.h:24