commit | 35240da609ab0d99c4a48d63a642668a1d7cc98d | [log] [tgz] |
---|---|---|
author | Wyatt Hepler <hepler@google.com> | Wed Jul 21 08:51:22 2021 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jul 28 22:45:36 2021 +0000 |
tree | 8d123409f8bffc47bffc65c2c5e4d564299f77b7 | |
parent | c2931da36dd1e0727f7b9fe33af1ec9717c93aa8 [diff] |
pw_rpc: Rework Python RPC client - Restructure the RPC call object to use a consistent API for all types of RPC. - Support synchronous and asynchronous invocations for all RPC types. - Switch to gRPC-like callback names: on_next, on_completed, on_error. Rename complete() to completed() for consistency. - Call the on_error callback when an RPC's payload fails to decode. - Remove the "keep_open" feature, which is obsolete since client streaming RPCs are now supported. - Default to override_pending=True in the callback client. Change-Id: Ic6a26393acb8b56fcac97fbbe3e633cc5b1b7947 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/54220 Reviewed-by: Alexei Frolov <frolv@google.com> Commit-Queue: Wyatt Hepler <hepler@google.com> Pigweed-Auto-Submit: Wyatt Hepler <hepler@google.com>
See our website: http://pigweed.dev