@@ -195,12 +195,12 @@ namespace ET
this.callback = null;
this.value = default;
this.state = AwaiterStatus.Pending;
- queue.Enqueue(this);
- // 太多了,回收一下
+ // 太多了
if (queue.Count > 1000)
{
- queue.Clear();
+ return;
}
+ queue.Enqueue(this);
private bool fromPool;