/// <summary> /// Return a timer to the pool if there is room. /// </summary> /// <remarks> /// <para> /// Important: All external references to the timer should be nulled. /// </para> /// </remarks> /// <param name="item">The timer to return.</param> /// <returns> /// True if the pool had room for the timer. /// False if the timer was reset and released for garbage collection. /// </returns> public static bool ReturnToPool(SimpleRangeTimer item) { CheckForPool(); return(m_Pool.PoolObject(item)); }
/// <summary> /// Return a runner to the pool if there is room. /// </summary> /// <remarks> /// <para> /// Important: All external references to the runner should be nulled. /// </para> /// </remarks> /// <param name="item">The runner to return.</param> /// <returns> /// True if the pool had room for the runner. /// False if the runner was reset and released for garbage collection. /// </returns> public static bool ReturnToPool(DelayedActionRunner item) { CheckForPool(); return(m_Pool.PoolObject(item)); }