AsyncReaderWriterResourceLock<TMoniker, TResource>::PrepareResourceForConcurrentAccessAsync Method (TResource, CancellationToken)
Visual Studio 2015
Microsoft internal only. Prepares a resource for concurrent access.
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
protected: virtual Task^ PrepareResourceForConcurrentAccessAsync( TResource resource, CancellationToken cancellationToken ) abstract
Parameters
- resource
-
Type:
TResource
The resource.
- cancellationToken
-
Type:
System.Threading::CancellationToken
The token whose cancellation signals lost interest in the resource.
Return Value
Type: System.Threading.Tasks::Task^A Task whose completion signals the resource has been prepared.
Show: