Concurrency Support for CBL .Net

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?

Yes, this is also true for C#

1 Like

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