• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to do cancellable HTTP request using CFNetwork APIs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to do cancellable HTTP request using CFNetwork APIs


  • Subject: Re: How to do cancellable HTTP request using CFNetwork APIs
  • From: Jens Alfke <email@hidden>
  • Date: Sun, 9 May 2010 17:37:30 -0700

I would really recommend using the asynchronous APIs instead. It avoids bad behaviors like polling. Your current loop means you’re using CPU time even when no data is arriving, and can also waste up to 100ms sleeping when there’s data to read. And these make canceling pretty trivial since you’re always in control.

—Jens_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >How to do cancellable HTTP request using CFNetwork APIs (From: Kenny Leung <email@hidden>)

  • Prev by Date: Re: How to do cancellable HTTP request using CFNetwork APIs
  • Next by Date: Re: how to cut and paste from an image to other image
  • Previous by thread: Re: How to do cancellable HTTP request using CFNetwork APIs
  • Next by thread: isKindOfClass:
  • Index(es):
    • Date
    • Thread