Public Member Functions | |
def | is_active |
def | time_remaining |
def | add_abortion_callback |
Provides RPC-related information and action.
def grpc.framework.alpha.interfaces.RpcContext.add_abortion_callback | ( | self, | |
abortion_callback | |||
) |
Registers a callback to be called if the RPC is aborted. Args: abortion_callback: A callable to be called and passed an Abortion value in the event of RPC abortion.
def grpc.framework.alpha.interfaces.RpcContext.is_active | ( | self | ) |
Describes whether the RPC is active or has terminated.
def grpc.framework.alpha.interfaces.RpcContext.time_remaining | ( | self | ) |
Describes the length of allowed time remaining for the RPC. Returns: A nonnegative float indicating the length of allowed time in seconds remaining for the RPC to complete before it is considered to have timed out.