Skip to content

Add base future package to google.cloud#3616

Merged
theacodes merged 5 commits intogoogleapis:masterfrom
theacodes:future
Jul 17, 2017
Merged

Add base future package to google.cloud#3616
theacodes merged 5 commits intogoogleapis:masterfrom
theacodes:future

Conversation

@theacodes
Copy link
Copy Markdown
Contributor

No description provided.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jul 17, 2017
@theacodes
Copy link
Copy Markdown
Contributor Author

Towards #3617

raise ValueError('%r could not be converted to unicode' % (value,))


def _from_any_pb(pb_type, any_pb):

This comment was marked as spam.

This comment was marked as spam.

any_pb (google.protobuf.any_pb2.Any): the object to be converted.

Returns:
pb_type: An instance of the pb_type message.

This comment was marked as spam.

@@ -0,0 +1,21 @@
# Copyright 2017, Google Inc.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Comment thread core/google/cloud/future/base.py Outdated
"""

@abc.abstractmethod
def cancel(self): # pragma: NO COVER

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

Comment thread core/google/cloud/future/base.py Outdated

@six.add_metaclass(abc.ABCMeta)
class Future(object):
# pylint: disable=missing-docstring, invalid-name

This comment was marked as spam.

This comment was marked as spam.

@@ -0,0 +1,52 @@
# Copyright 2017, Google Inc.

This comment was marked as spam.

This comment was marked as spam.

@dhermes
Copy link
Copy Markdown
Contributor

dhermes commented Jul 17, 2017

LGTM

@theacodes theacodes merged commit 9c06b35 into googleapis:master Jul 17, 2017
@theacodes theacodes deleted the future branch July 17, 2017 21:27

"""Future interface.

This interface is based on :class:`concurrent.futures.Future`.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 21, 2017
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 22, 2017
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 22, 2017
parthea pushed a commit that referenced this pull request Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: core cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants