Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add experimental option to run unary-stream RPCs on a single Python thread. #20753

Merged
merged 26 commits into from
Oct 23, 2019
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/python/grpcio/grpc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1953,6 +1953,17 @@ class Compression(enum.IntEnum):
Gzip = _compression.Gzip


class ChannelOptions(object):
"""Indicates a channel option unique to gRPC Python.

This enumeration is part of an EXPERIMENTAL API.

Attributes:
SingleThreadedUnaryStream: Perform unary-stream RPCs on a single thread.
"""
SingleThreadedUnaryStream = "SingleThreadedUnaryStream"
gnossen marked this conversation as resolved.
Show resolved Hide resolved


################################### __all__ #################################

__all__ = (
Expand Down