mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-07 16:11:13 +00:00
21 lines
461 B
Objective-C
21 lines
461 B
Objective-C
#import <SSignalKit/SDisposable.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)_markTerminatedWithoutDisposal;
|
|
|
|
- (void)putNext:(id)next;
|
|
- (void)putError:(id)error;
|
|
- (void)putCompletion;
|
|
|
|
@end
|