diff --git a/mimo/connection/connection.py b/mimo/connection/connection.py index 5cb6479..50148c7 100644 --- a/mimo/connection/connection.py +++ b/mimo/connection/connection.py @@ -11,5 +11,8 @@ def __init__(self, name, threshold=10): def __len__(self): return len(self.entities) + def clear(self): + self.entities.clear() + def is_full(self): return len(self.entities) >= self.threshold