cleanup method

void cleanup()

Calls _cleaner on all the stored objects.

Implementation

void cleanup() {
  for (T used in _inUse) {
    _cleaner(used);
  }
}