Condividi tramite


AsyncReaderWriterLock.Releaser.ReleaseAsync Method

Definition

Asynchronously releases the lock. Dispose should still be called after this.

public:
 System::Threading::Tasks::Task ^ ReleaseAsync();
public System.Threading.Tasks.Task ReleaseAsync ();
member this.ReleaseAsync : unit -> System.Threading.Tasks.Task
Public Function ReleaseAsync () As Task

Returns

A task that should complete before the releasing thread accesses any resource protected by a lock wrapping the lock being released.

Remarks

Rather than calling this method explicitly, use the C# 8 "await using" syntax instead.

Applies to