Azure.Core.AsyncLockWithValue<T> sealed class AsyncLockWithValue<T> Documentation Code public struct LockOrValue<T> : IDisposable public bool HasValue { get; } public AsyncLockWithValue() public AsyncLockWithValue(T value) public ValueTask<LockOrValue<T>> GetLockOrValueAsync(bool async, CancellationToken cancellationToken = default) public bool TryGetValue(out T value)