Skip to content

Conversation

@dstufft
Copy link
Contributor

@dstufft dstufft commented Mar 18, 2019

Implements async function support, exposing it the same as a sync function in the Python language.

This is basically done, but will need to coordinate with sync callbacks to make sure we're not doing anything drastically different for the bits that are going to be shared.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@dstufft dstufft requested a review from a team as a code owner March 18, 2019 19:08
__jsii_type__ = "Object"


def _handle_callback(kernel, callback):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note, this doesn't actually handle everything, this is one of the things that we need to coordinate with the sync callbacks with over who wants to "own" doing the complete implementation of this.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you just want to merge this version and then I can do a PR with the updated version?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That works for me.

# These map distinct reasons for failures, so we an easily find them.
xfail_async = pytest.mark.xfail(reason="Implement async methods", strict=True)
xfail_callbacks = pytest.mark.xfail(reason="Implement callback support", strict=True)
xfail_callbacks = pytest.mark.skip(reason="Implement callback support")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to switch this to a skip, because running these tests and failing on them left the process in a bad state.

@dstufft dstufft merged commit b5d49de into aws:master Mar 19, 2019
@dstufft dstufft deleted the async branch March 19, 2019 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants