GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Return self in subscribeState:usingBlock of STNetTaskGroup to support… · kevin-lyn/STNetTaskQueue@8d99bb2

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • STNetTaskQueue
    • STNetTaskGroup.h
    • STNetTaskGroup.m
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎STNetTaskQueue/STNetTaskGroup.h‎

Copy file name to clipboardExpand all lines: STNetTaskQueue/STNetTaskGroup.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ typedef void (^STNetTaskGroupSubscriptionBlock)(STNetTaskGroup *group, NSError *
8888
@param state STNetTaskGroupState
8989
@param block STNetTaskGroupSubscriptionBlock
9090
*/
91-
- (void)subscribeState:(STNetTaskGroupState)state usingBlock:(STNetTaskGroupSubscriptionBlock)block;
91+
- (STNetTaskGroup *)subscribeState:(STNetTaskGroupState)state usingBlock:(STNetTaskGroupSubscriptionBlock)block;
9292

9393
/**
9494
Start executing tasks in this group.
Collapse file

‎STNetTaskQueue/STNetTaskGroup.m‎

Copy file name to clipboardExpand all lines: STNetTaskQueue/STNetTaskGroup.m
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ - (void)addTask:(STNetTask *)task
4545
self.tasks = [NSArray arrayWithArray:tasks];
4646
}
4747

48-
- (void)subscribeState:(STNetTaskGroupState)state usingBlock:(STNetTaskGroupSubscriptionBlock)block
48+
- (STNetTaskGroup *)subscribeState:(STNetTaskGroupState)state usingBlock:(STNetTaskGroupSubscriptionBlock)block
4949
{
5050
if (!self.stateToBlock) {
5151
self.stateToBlock = [NSMutableDictionary new];
@@ -56,6 +56,7 @@ - (void)subscribeState:(STNetTaskGroupState)state usingBlock:(STNetTaskGroupSubs
5656
self.stateToBlock[@(state)] = blocks;
5757
}
5858
[blocks addObject:[block copy]];
59+
return self;
5960
}
6061

6162
- (void)notifyState:(STNetTaskGroupState)state withError:(NSError *)error

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.