> On Jan 19, 2015, at 1:06 PM, Martin Palatnik <[email protected]> wrote:
> 
> The problem I'm having is that the synchronization dies anyway after the 10 
> secs even if I use beginBackgroundTaskWithExpirationHandler: 
> <https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplication_Class/index.html#//apple_ref/occ/instm/UIApplication/beginBackgroundTaskWithExpirationHandler:>.
>  My hint is that the syncing is probably executing in a different thread and 
> iOS kills it anyway after the 10 secs not taking into account the background 
> task. 

I don't think it matters what thread things are running on. They're all in a 
single process (your app). The OS won't kill individual threads; that's only 
something code running inside your process would do, and even then it's 
considered a very bad idea to kill a thread without its consent.

Can you provide more info? Like, how do you know the synchronization dies? Does 
the rest of your process exit at the same time?

—Jens

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/1EFC38E5-467E-4FFA-B842-CDBE32FAE6E4%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to