• 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
-forceCancel an NSOperation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

-forceCancel an NSOperation


  • Subject: -forceCancel an NSOperation
  • From: Carl Hoefs <email@hidden>
  • Date: Wed, 01 Mar 2017 14:23:48 -0800

The NSOperation -cancel and NSOperationQueue -cancelAllOperations methods merely set a property that needs to be periodically and cooperatively checked and acted upon by the receiving NSOperation.

Normally, that is sufficient. But under some circumstances, it's possible for an executing NSOperation to get hung up doing I/O or for some other reason. No means is given to forcibly stop the execution of an NSOperation, and there's no -thread method to obtain its thread and terminate it.

Does GCD allow this level of introspection and control of executing blocks?
-Carl


_______________________________________________

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


  • Follow-Ups:
    • Re: -forceCancel an NSOperation
      • From: Wim Lewis <email@hidden>
    • Re: -forceCancel an NSOperation
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: macOS 10.13 suggestion for init() throws
  • Next by Date: Re: -forceCancel an NSOperation
  • Previous by thread: Re: macOS 10.13 suggestion for init() throws
  • Next by thread: Re: -forceCancel an NSOperation
  • Index(es):
    • Date
    • Thread