private void ServeGuests() { var ct = cts.Token; while (ct.IsCancellationRequested == false) { if (Pub.CanEmployeesLeave()) { GoHome(); return; } ServeNextPatron(); } }
private void StartWorking() { var ct = cts.Token; while (ct.IsCancellationRequested == false) { if (Pub.CanEmployeesLeave()) { GoHome(); return; } FetchGlasses(); WashDishes(); ReturnCleanGlasses(); } }