Skip to content

Commit

Permalink
[RPC] Improve RPCServer AsyncIO support. (#5544)
Browse files Browse the repository at this point in the history
* [RPC] Improve RPCServer AsyncIO support.

When the RPCServer is in the async IO mode, it is possible for the server
to directly serve async function that may return its value via a callback in the future.
This mode is particular useful to the web environment, where blocking is not an option.

This PR introduces the Async support to the RPCSession, allowing the AsyncIO driven servers
to serve the async functions. These functions will still be presented as synchronized version
on the client side.

Followup PR will refactor the web runtime to make use of this feature.

* Address comments
  • Loading branch information
tqchen authored May 8, 2020
1 parent 15a4218 commit 2175f6b
Show file tree
Hide file tree
Showing 5 changed files with 397 additions and 129 deletions.
Loading

0 comments on commit 2175f6b

Please sign in to comment.