simplify reading lines, simplify wait_for, wait_for from outside reads
This commit is contained in:
parent
db851e0ba2
commit
b9a543031a
4 changed files with 78 additions and 93 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue