> On Jun 10, 2016, at 3:07 PM, Phil Mitchell <[email protected]> wrote:
> 
> 1. The docs seem to indicate that dispatchQueue is no longer available as a 
> property on CBLManager (1.2). I'm on 1.1 and dispatchQueue seems to solve my 
> problem quite nicely, so I'm hoping this is a documentation bug (?). 
> http://developer.couchbase.com/documentation/mobile/current/develop/references/couchbase-lite/couchbase-lite/manager/manager/index.html

Those docs are cross-platform and only describe the standard API. They won’t 
include platform-specific functionality like access to dispatch queues. To see 
what’s available, look at the headers. CBLManager.h includes a dispatchQueue 
property.

> 2. When I set [CBLManager sharedInstance].dispatchQueue equal to a serial 
> dispatch queue that I create, I seem to be able to then call CBL from any 
> queue I want (including syncronously on main queue, and asynchronously on 
> global queues as well as the serial queue itself). Is this correct or will 
> this bite me later?

By “call” do you mean direct method calls, or are you using dispatch_sync and 
dispatch_async?

Direct method calls from other queues/threads will not work correctly. 
Dispatching blocks to the CBLManager’s queue will work; that’s exactly what 
it’s for.

—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/08F4D61E-F7A4-4471-9867-F30351747A64%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to