Re: sleepWithCompletionHandler not working
Re: sleepWithCompletionHandler not working
- Subject: Re: sleepWithCompletionHandler not working
- From: "Quinn \"The Eskimo!\"" <email@hidden>
- Date: Thu, 07 Jan 2016 11:40:58 +0000
On 7 Jan 2016, at 08:43, Kevin Yu <email@hidden> wrote:
> 1. The sleepWithCompletionHandler seems not work at all.
What platform are you testing this on?
> 2. I can not detect the connection is drop or not. Is it possible to use some kind of timer (like NSTimer) in Network extension code? without timer, don’t know when to check the connection state. NSTimer needs to work with Runloop, the extension code can also use it?
You can always start your own thread and schedule run loop timers on that, but it might be simpler to use a dispatch timer event source. It really depends on how the rest of your extension code is structured.
Share and Enjoy
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden