/// <summary> /// 初始化一个<see cref="AsyncLock"/>类型的新实例 /// </summary> public AsyncLock() { _semaphore = new AsyncSemaphore(1); _releaser = Task.FromResult(new Releaser(this)); }