rewrite how wait_for works - only one at a time now

This commit is contained in:
jesopo 2020-04-29 12:13:06 +01:00
parent a3abae811a
commit 51cfd0f36b
4 changed files with 95 additions and 85 deletions

View file

@ -103,6 +103,10 @@ class IServer(Server):
async def disconnect(self):
pass
def line_preread(self, line: Line):
pass
def line_presend(self, line: Line):
pass
async def line_read(self, line: Line):
pass
async def line_send(self, line: Line):
@ -112,9 +116,6 @@ class IServer(Server):
async def resume_policy(self, resume: ResumePolicy):
pass
async def next_line(self) -> Optional[Tuple[Line, Optional[Emit]]]:
pass
def cap_agreed(self, capability: ICapability) -> bool:
pass
def cap_available(self, capability: ICapability) -> Optional[str]: