server.send() should be sync and return a Future - no nead for double await

This commit is contained in:
jesopo 2020-04-05 23:54:57 +01:00
parent 899d4821f0
commit 730fef38f3
2 changed files with 9 additions and 9 deletions

View file

@ -42,9 +42,9 @@ class IServer(Server):
params: ConnectionParams
desired_caps: Set[ICapability]
async def send_raw(self, line: str, priority=SendPriority.DEFAULT):
def send_raw(self, line: str, priority=SendPriority.DEFAULT) -> Future:
pass
async def send(self, line: Line, priority=SendPriority.DEFAULT):
def send(self, line: Line, priority=SendPriority.DEFAULT) -> Future:
pass
def wait_for(self, response: IMatchResponse) -> Awaitable[Line]: