private void AutoClean() { if (!AutoClear) { return; } SleepPool.Clear(SleepPool.count - SleepCapcity); }
public void Clear(T t, IEventArgs arg, bool ignoreRun = true) { if (IsRunning(t)) { if (ignoreRun) { return; } Set(t, arg); } SleepPool.Clear(t, arg); }
public void Clear(T t, bool ignoreRun = true) { if (IsRunning(t)) { if (ignoreRun) { return; } Set(t); } SleepPool.Clear(t); }
public void ClearSleepPool(IEventArgs arg) { SleepPool.Clear(arg); }
public void ClearSleepPool() { SleepPool.Clear(); }