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 base future package to google.cloud #3616

Merged
merged 5 commits into from
Jul 17, 2017
Merged

Conversation

theacodes
Copy link
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
Contributor Author

Towards #3617

@@ -379,6 +379,29 @@ def _bytes_to_unicode(value):
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.

"""

@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.


@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
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
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