mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-07 16:11:13 +00:00
22 lines
463 B
Objective-C
22 lines
463 B
Objective-C
#import "SDisposable.h"
|
|
#import "SEvent.h"
|
|
|
|
@interface SSubscriber : NSObject <SDisposable>
|
|
{
|
|
@public
|
|
void (^_next)(id);
|
|
void (^_error)(id);
|
|
void (^_completed)();
|
|
}
|
|
|
|
- (instancetype)initWithNext:(void (^)(id))next error:(void (^)(id))error completed:(void (^)())completed;
|
|
|
|
- (void)_assignDisposable:(id<SDisposable>)disposable;
|
|
|
|
- (void)putEvent:(SEvent *)event;
|
|
- (void)putNext:(id)next;
|
|
- (void)putError:(id)error;
|
|
- (void)putCompletion;
|
|
|
|
@end
|