nst / STHTTPRequest

Obj-C / Cocoa HTTP requests for humans
BSD 3-Clause "New" or "Revised" License
826 stars 75 forks source link

Callback queue #20

Open jasperblues opened 10 years ago

jasperblues commented 10 years ago

Great library!

One concern is the requirement to always call back on the main queue. This makes a very sensible default, but I've had one or two situations where its been necessary to call back on some other queue.

Example of BBHTTP calling back on another queue:

[request setCallbackQueue:dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)];

. . what do you think?