Documenting InvalidOperationException
for ReadLockAsync
(and possibly other methods)
#1128
Labels
InvalidOperationException
for ReadLockAsync
(and possibly other methods)
#1128
I know that
AsyncReaderWriterLock
has the "completion" feature (i.e.asyncReaderWriterLock.Complete()
) but:vs-threading/src/Microsoft.VisualStudio.Threading/AsyncReaderWriterLock.cs
Lines 408 to 416 in 1738f83
is not really helpful in explaining what happens when the
AsyncReaderWriterLock.Complete()
has been called.For me it throws:
System.InvalidOperationException : This lock has already been marked for completion. No new top-level locks can be serviced.
Would it be worth documening that?
cc @AArnott
The text was updated successfully, but these errors were encountered: