diff options
Diffstat (limited to 'src/python/grpcio/grpc/framework/foundation/stream_util.py')
-rw-r--r-- | src/python/grpcio/grpc/framework/foundation/stream_util.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/python/grpcio/grpc/framework/foundation/stream_util.py b/src/python/grpcio/grpc/framework/foundation/stream_util.py index 2210e4efcf..a6f234f1fe 100644 --- a/src/python/grpcio/grpc/framework/foundation/stream_util.py +++ b/src/python/grpcio/grpc/framework/foundation/stream_util.py @@ -83,6 +83,9 @@ class IterableConsumer(stream.Consumer): def __iter__(self): return self + def __next__(self): + return self.next() + def next(self): with self._condition: while self._active and not self._values: |