private void _Update() { IBinder binder; while (_AddBinders.TryDequeue(out binder)) { var user = _Proviable(binder); binder.BreakEvent += () => { _RemoveBinders.Enqueue(user); }; _Users.Add(user); } IUpdatable removeUser; while (_RemoveBinders.TryDequeue(out removeUser)) { _Users.Remove(removeUser); } _Users.Working(); }
public void Remove(Task task) { _Tasks.Remove(task); }