/// <summary> /// 清空对象池 /// </summary> public void Clear() { IObjectPool pool = this.GetObjectPool(); if (pool != null) { pool.Clear(); } }
public void Dispose() { pool?.Clear(); }
public void Clear() { objectPool.Clear(); }
public void ClearObjectPool() { _pool.Clear(); }