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

Issue 164: Enable invocation of async PravegaReader method using python's asyncio library. #161

Merged
merged 12 commits into from
Oct 12, 2020

Conversation

shrids
Copy link
Contributor

@shrids shrids commented Oct 8, 2020

Change log description

  • Ensure the rust client returns a python future to indicate if a SegmentSlice is present which can be consumed.

Purpose of the change
Fixes #164

What the code does
This PR enables a mechanism by which the Python client needs to be blocked while waiting for the next SegmentSlice to be returned by the EventStreamReader. The user can await on the python future, so that the application process other co-routines while waiting for the new SegmentSlices to read.

How to verify it
All the existing and newly added tests should pass.

@shrids shrids changed the title Issue: POC to enable invocation of async PravegaReader method using asyncio library. Issue: Enable invocation of async PravegaReader method using python's asyncio library. Oct 9, 2020
@shrids shrids changed the title Issue: Enable invocation of async PravegaReader method using python's asyncio library. Issue 164: Enable invocation of async PravegaReader method using python's asyncio library. Oct 9, 2020
shrids added 3 commits October 9, 2020 17:48
Signed-off-by: Sandeep <[email protected]>
@shrids shrids marked this pull request as ready for review October 9, 2020 13:21
bindings/src/pravega_reader_test.py Outdated Show resolved Hide resolved
bindings/src/stream_reader.rs Outdated Show resolved Hide resolved
bindings/src/stream_reader.rs Outdated Show resolved Hide resolved
bindings/tox.ini Outdated Show resolved Hide resolved
@Tristan1900 Tristan1900 merged commit 442d4ac into master Oct 12, 2020
@Tristan1900 Tristan1900 deleted the python-asyncio-poc-2 branch October 12, 2020 01:32
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.

Enable a mechanism to invoke async rust methods via Python asyncio library.
3 participants