Re: performSelector in Swift
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