Public Member Functions | List of all members
grpc.aio._base_call.UnaryStreamCall Class Reference
Inheritance diagram for grpc.aio._base_call.UnaryStreamCall:
Inheritance graph
[legend]

Public Member Functions

AsyncIterable[ResponseType] __aiter__ (self)
 
Union[EOFType, ResponseType] read (self)
 
- Public Member Functions inherited from grpc.aio._base_call.Call
grpc.StatusCode code (self)
 
str details (self)
 
Metadata initial_metadata (self)
 
Metadata trailing_metadata (self)
 
None wait_for_connection (self)
 
- Public Member Functions inherited from grpc.aio._base_call.RpcContext
None add_done_callback (self, DoneCallbackType callback)
 
bool cancel (self)
 
bool cancelled (self)
 
bool done (self)
 
Optional[float] time_remaining (self)
 

Detailed Description

Definition at line 154 of file _base_call.py.

Member Function Documentation

◆ __aiter__()

AsyncIterable[ResponseType] grpc.aio._base_call.UnaryStreamCall.__aiter__ (   self)
Returns the async iterable representation that yields messages.

Under the hood, it is calling the "read" method.

Returns:
  An async iterable object that yields messages.

Definition at line 157 of file _base_call.py.

◆ read()

Union[EOFType, ResponseType] grpc.aio._base_call.UnaryStreamCall.read (   self)
Reads one message from the stream.

Read operations must be serialized when called from multiple
coroutines.

Returns:
  A response message, or an `grpc.aio.EOF` to indicate the end of the
  stream.

Reimplemented in grpc.aio._interceptor.UnaryStreamCallResponseIterator.

Definition at line 167 of file _base_call.py.


The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:32