Skip to content

Commit

Permalink
Merge pull request #2551 from tomjakubowski/bugfix/py_get_hosted_tabl…
Browse files Browse the repository at this point in the history
…e_names

Fix get_hosted_table_names in Python client
  • Loading branch information
texodus authored Mar 12, 2024
2 parents c897472 + 75e6e5b commit d9fa027
Show file tree
Hide file tree
Showing 2 changed files with 135 additions and 138 deletions.
4 changes: 3 additions & 1 deletion python/perspective/perspective/client/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ def send(self, msg):

def get_hosted_table_names(self):
msg = {"cmd": "get_hosted_table_names"}
return self.post(msg)
future = asyncio.Future()
self.post(msg, future=future)
return future

def post(self, msg, future=None, keep_alive=False):
"""Given a message and an associated `Future` object, store the future
Expand Down
Loading

0 comments on commit d9fa027

Please sign in to comment.