-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathSTNetTaskChain.h
More file actions
41 lines (30 loc) · 1020 Bytes
/
STNetTaskChain.h
File metadata and controls
41 lines (30 loc) · 1020 Bytes
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// STNetTaskChain.h
// STNetTaskQueue
//
// Created by Kevin Lin on 29/11/14.
// Copyright (c) 2014 Sth4Me. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@class STNetTaskQueue;
@class STNetTask;
@class STNetTaskChain;
DEPRECATED_MSG_ATTRIBUTE("Use STNetTaskGroup instead")
@protocol STNetTaskChainDelegate <NSObject>
- (void)netTaskChainDidEnd:(STNetTaskChain *)netTaskChain;
@end
DEPRECATED_MSG_ATTRIBUTE("Use STNetTaskGroup instead")
@interface STNetTaskChain : NSObject
@property (nullable, nonatomic, weak) id<STNetTaskChainDelegate> delegate;
@property (nullable, nonatomic, strong) STNetTaskQueue *queue;
@property (nullable, nonatomic, strong, readonly) NSError *error;
@property (nonatomic, assign, readonly) BOOL started;
- (void)setTasks:(STNetTask *)task, ...;
// Return NO indicates this task should not be sent.
- (BOOL)onNextRequest:(STNetTask *)task;
- (void)onNextResponse:(STNetTask *)task;
- (void)start;
- (void)cancel;
@end
NS_ASSUME_NONNULL_END