Right, I meant something like:

```
if partitioner.allocating:
    partitioner.wait_for_acquire()
elif partitioner.release:
....

if partition.acquired:
    ...
```