Concurrency Support for CBL .Net


#1

The Concurrency Support section of the CBL native API documentation states that “In Java all Couchbase Lite objects may be shared freely between threads.” Is this also true for the C# version?


#2

Yes, this is also true for C#


#3

If the need should arise where you need to synchronize thread access to a shared object (not CBL specific) you could use the light wait and async SemaphoreSlim class from .NET 4.5.
MSDN documentation can be found here:
https://msdn.microsoft.com/en-us/library/system.threading.semaphoreslim(v=vs.110).aspx