public void Unregister(IKcpRunnable runnable) { Logger.Error(" Unregister "); if (thread == null) { throw new ArgumentNullException(nameof(runnable)); } this.runnables.Remove(runnable); }
public void Register(IKcpRunnable runnable) { if (this.isStop) { throw new Exception(""); } if (runnable == null) { throw new ArgumentNullException(nameof(runnable)); } this.runnables.Add(runnable); }