Toggle navigation
Toggle navigation
This project
Loading...
Sign in
iOS
/
asi-http-request
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Ben Copsey
2009-03-22 13:09:23 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
23f06a5d5dfedf6babc32c3e744e9015494a0044
23f06a5d
1 parent
32e18c03
Added sharedNetworkQueue, a singleton-like queue that will save you having to manage queues yourself
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
Classes/ASINetworkQueue.h
Classes/ASINetworkQueue.m
Classes/ASINetworkQueue.h
View file @
23f06a5
...
...
@@ -83,6 +83,9 @@
// This method will start the queue
-
(
void
)
go
;
// A globally available network queue, created the first time it is requested
+
(
ASINetworkQueue
*
)
sharedNetworkQueue
;
@property
(
assign
,
setter
=
setUploadProgressDelegate
:
)
id
uploadProgressDelegate
;
@property
(
assign
,
setter
=
setDownloadProgressDelegate
:
)
id
downloadProgressDelegate
;
...
...
Classes/ASINetworkQueue.m
View file @
23f06a5
...
...
@@ -9,6 +9,7 @@
#import "ASINetworkQueue.h"
#import "ASIHTTPRequest.h"
static
ASINetworkQueue
*
sharedNetworkQueue
=
nil
;
@implementation
ASINetworkQueue
...
...
@@ -288,6 +289,14 @@
}
+
(
ASINetworkQueue
*
)
sharedNetworkQueue
{
if
(
!
sharedNetworkQueue
)
{
sharedNetworkQueue
=
[[
ASINetworkQueue
alloc
]
init
];
}
return
sharedNetworkQueue
;
}
@synthesize
uploadProgressDelegate
;
@synthesize
downloadProgressDelegate
;
...
...
Please
register
or
login
to post a comment