AsyncReaderWriterLock::OnBeforeWriteLockReleased Method (Func<Task^>^)
Visual Studio 2015
Microsoft internal only. Registers a callback that is invoked when the outermost write lock held by the caller is about to be released.
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
This supports scenarios in which a change event handler needs to inspect changes or make further changes at the conclusion of the lock. This method is safe to call from within a previously registered callback. A registered callback runs after the previously registered callbacks have completed execution. If the write lock is released to an upgradeable read lock, these callbacks are fired synchronously with respect to the writer that is releasing the lock. Otherwise, the callbacks are invoked asynchronously with respect to the releasing thread.
Show: