simplify reading lines, simplify wait_for, wait_for from outside reads

This commit is contained in:
jesopo 2020-06-13 00:21:39 +01:00
parent db851e0ba2
commit b9a543031a
4 changed files with 78 additions and 93 deletions

View file

@ -46,7 +46,7 @@ class SentLine(object):
self.id = id
self.priority = priority
self.line = line
self.future: Future = Future()
self.future: "Future[SentLine]" = Future()
def __lt__(self, other: "SentLine") -> bool:
return self.priority < other.priority