Skip to content

Instantly share code, notes, and snippets.

@zachlendon
Created March 21, 2011 06:05
Show Gist options
  • Select an option

  • Save zachlendon/879107 to your computer and use it in GitHub Desktop.

Select an option

Save zachlendon/879107 to your computer and use it in GitHub Desktop.
if (networkStatus == ReachableViaWiFiNetwork)
{
[delegate.queue setMaxConcurrentOperationCount:4];
}
else if (networkStatus == ReachableViaCarrierDataNetwork)
{
[delegate.queue
setMaxConcurrentOperationCount:NSOperationQueueDefaultMaxConcurrentOperationCount];
//receiver chooses appropriate # based on system resources
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment