/// <summary> /// Initializes a new instance of the <see cref="AsyncLock" /> class. /// </summary> public AsyncLock() { _semaphore = new AsyncSemaphore(1); _releaser = Task.FromResult(new Releaser(this)); }