Open sandboxFocus

Struct ConcurrentAccessAwaiter

An awaiter for the AcquireAccessAsync(ObjectAccessLevel) method. The struct implements both the Awaiter and Awaitable contracts.

Namespace: PostSharp.Patterns.Threading
Assembly: PostSharp.Patterns.Common.dll
Syntax
public readonly struct ConcurrentAccessAwaiter : ICriticalNotifyCompletion, INotifyCompletion

Properties

Name Description
IsCompleted

Determines whether the operation has already completed.

Methods

Name Description
GetAwaiter()

Gets the Awaiter from the Awaitable. This method is a part of the Awaitable contract.

GetResult()

Gets the result of the async method. This method is a part of the Awaiter contract.

OnCompleted(Action)
UnsafeOnCompleted(Action)