Rename `Client.send_update()` -> `.update_nowait()`

pre_overruns_ctxcancelled
Tyler Goodlet 2023-03-22 10:50:10 -04:00
parent b1e241781e
commit 3db9854271
1 changed files with 9 additions and 1 deletions

View File

@ -82,7 +82,7 @@ class OrderBook(Struct):
log.warning('USE `.send_nowait()` instead!')
return self.send_nowait(msg)
def send_update(
def update_nowait(
self,
uuid: str,
@ -95,6 +95,14 @@ class OrderBook(Struct):
self._to_ems.send_nowait(msg)
return cmd
# TODO: async meth for this!
# def update(
# self,
# uuid: str,
# **data: dict,
# ) -> dict:
# ...
def cancel_nowait(
self,
uuid: str,