public ContainerSlot Rent() { if (pool is null) { return(new ContainerSlot()); } var rent = pool; pool = null; return(rent); }
public void Return(ContainerSlot slot) { slot.Clear(); pool ??= slot; }