server.send() should be sync and return a Future - no nead for double await
This commit is contained in:
parent
899d4821f0
commit
730fef38f3
2 changed files with 9 additions and 9 deletions
|
@ -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]:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue