mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-03 19:30:09 +00:00
30 lines
558 B
Objective-C
30 lines
558 B
Objective-C
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
@class MTQueue;
|
|
@class MTHttpWorkerBehaviour;
|
|
|
|
@protocol MTHttpWorkerBehaviourDelegate <NSObject>
|
|
|
|
@optional
|
|
|
|
- (void)httpWorkerBehaviourAllowsNewWorkerCreation:(MTHttpWorkerBehaviour *)behaviour;
|
|
|
|
@end
|
|
|
|
@interface MTHttpWorkerBehaviour : NSObject
|
|
|
|
@property (nonatomic, weak) id<MTHttpWorkerBehaviourDelegate> delegate;
|
|
|
|
- (instancetype)initWithQueue:(MTQueue *)queue;
|
|
|
|
- (void)clearBackoff;
|
|
|
|
- (void)setWorkersNeeded;
|
|
- (void)workerConnected;
|
|
- (void)workerReceivedValidData;
|
|
- (void)workerDisconnectedWithError;
|
|
|
|
@end
|