def channel_ready_future(channel): """Creates a Future that tracks when a Channel is ready. Cancelling the Future does not affect the channel's state machine. It merely decouples the Future from channel state machine. Args: channel: A Channel object. Returns: A Future object that matures when the channel connectivity is ChannelConnectivity.READY. """ from grpc import _utilities # pylint: disable=cyclic-import return _utilities.channel_ready_future(channel)
def channel_ready_future(channel): """Creates a Future that tracks when a Channel is ready. Cancelling the Future does not affect the channel's state machine. It merely decouples the Future from channel state machine. Args: channel: A Channel object. Returns: A Future object that matures when the channel connectivity is ChannelConnectivity.READY. """ from grpc import _utilities # pylint: disable=cyclic-import return _utilities.channel_ready_future(channel)
def channel_ready_future(channel): """Creates a Future tracking when a Channel is ready. Cancelling the returned Future does not tell the given Channel to abandon attempts it may have been making to connect; cancelling merely deactivates the returned Future's subscription to the given Channel's connectivity. Args: channel: A Channel. Returns: A Future that matures when the given Channel has connectivity ChannelConnectivity.READY. """ from grpc import _utilities return _utilities.channel_ready_future(channel)
def channel_ready_future(channel): """Creates a Future tracking when a Channel is ready. Cancelling the returned Future does not tell the given Channel to abandon attempts it may have been making to connect; cancelling merely deactivates the returned Future's subscription to the given Channel's connectivity. Args: channel: A Channel. Returns: A Future that matures when the given Channel has connectivity ChannelConnectivity.READY. """ from grpc import _utilities return _utilities.channel_ready_future(channel)