public static InfiniteScaleObjectPool <T> Create(uint initialSize) { var pool = new InfiniteScaleObjectPool <T>(); for (uint i = 0; i < initialSize; i++) { pool.Return(pool.Create()); } return(pool); }
public static void Return(PooledCountdownEvent obj) { Pool.Return(obj); }