2using System.Threading.Tasks;
An interface for objects that allow single concurrent writers but multiple concurrent readers.
Task EndWrite()
Ends a writing session of the object. Must be called once for each call to BeginWrite or successful c...
int NrReaders
Number of concurrent readers.
Task< bool > TryBeginWrite(int Timeout)
Waits, at most Timeout milliseconds, until object ready for writing. Each successful call to TryBegi...
bool IsWriting
If the object has a writer.
Task BeginWrite()
Waits until object ready for writing. Each call to BeginWrite must be followed by exactly one call to...
Task< int > BeginRead()
Waits until object ready for reading. Each call to BeginRead must be followed by exactly one call to ...
Task< bool > TryBeginRead(int Timeout)
Waits, at most Timeout milliseconds, until object ready for reading. Each successful call to TryBegi...
Task< int > EndRead()
Ends a reading session of the object. Must be called once for each call to BeginRead or successful ca...