共用方式為


AsyncReaderWriterLock.Awaiter Class

Definition

Manages asynchronous access to a lock.

public: ref class AsyncReaderWriterLock::Awaiter : System::Runtime::CompilerServices::INotifyCompletion
public: ref class AsyncReaderWriterLock::Awaiter : System::Runtime::CompilerServices::ICriticalNotifyCompletion
[System.Diagnostics.DebuggerDisplay("{kind}")]
public class AsyncReaderWriterLock.Awaiter : System.Runtime.CompilerServices.INotifyCompletion
[System.Diagnostics.DebuggerDisplay("{kind}")]
public class AsyncReaderWriterLock.Awaiter : System.Runtime.CompilerServices.ICriticalNotifyCompletion
[<System.Diagnostics.DebuggerDisplay("{kind}")>]
type AsyncReaderWriterLock.Awaiter = class
    interface INotifyCompletion
[<System.Diagnostics.DebuggerDisplay("{kind}")>]
type AsyncReaderWriterLock.Awaiter = class
    interface ICriticalNotifyCompletion
    interface INotifyCompletion
Public Class AsyncReaderWriterLock.Awaiter
Implements INotifyCompletion
Public Class AsyncReaderWriterLock.Awaiter
Implements ICriticalNotifyCompletion
Inheritance
AsyncReaderWriterLock.Awaiter
Attributes
Implements

Properties

IsCompleted

Gets a value indicating whether the lock has been issued.

Methods

GetResult()

Applies the issued lock to the caller and returns the value used to release the lock.

OnCompleted(Action)

Sets the delegate to execute when the lock is available.

UnsafeOnCompleted(Action)

Sets the delegate to execute when the lock is available without flowing ExecutionContext.

Applies to

Thread Safety

This type is thread-safe for all members.