Skip to content

Commit

Permalink
added clear method to connectin
Browse files Browse the repository at this point in the history
  • Loading branch information
Liam Childs committed Sep 22, 2016
1 parent 24e5e10 commit 1a670c9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mimo/connection/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1a670c9

Please sign in to comment.