• 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: performSelector in Swift
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: performSelector in Swift


  • Subject: Re: performSelector in Swift
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 10 Jul 2014 21:28:14 -0700


On Jul 10, 2014, at 8:48 PM, Gerriet M. Denkmann <email@hidden> wrote:

There are several places where one needs to use performSelector:withObject:afterDelay:0 to execute something as soon as possible, but NOT in this event loop. How to do this in Swift?

dispatch_async will do it … although it requires that you know which dispatch queue to run it in; there’s no way to say “the current queue” the way that a delayed-perform implicitly runs on the current runloop.

—Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >performSelector in Swift (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: performSelector in Swift
  • Next by Date: Re: performSelector in Swift
  • Previous by thread: performSelector in Swift
  • Next by thread: Re: performSelector in Swift
  • Index(es):
    • Date
    • Thread