Describe the expectations of input arguments and return values

pull/22925/head
Lidi Zheng 5 years ago
parent ef6ff6dcfd
commit 7eeab2a23c
  1. 8
      src/python/grpcio/grpc/experimental/__init__.py

@ -85,6 +85,14 @@ def wrap_server_method_handler(wrapper, handler):
The server implementation requires all server handlers being wrapped as
RpcMethodHandler objects. This helper function ease the pain of writing
server handler wrappers.
Args:
wrapper: A wrapper function that takes in a method handler behavior
(the actual function) and returns a wrapped function.
handler: A RpcMethodHandler object to be wrapped.
Returns:
A newly created RpcMethodHandler.
"""
if not handler:
return None

Loading…
Cancel
Save