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

Barebones grpc aio attempt #276

Closed
wants to merge 1 commit into from
Closed

Barebones grpc aio attempt #276

wants to merge 1 commit into from

Conversation

nipunn1313
Copy link
Owner

put together a bare diff with ideas from #217 - might be a good starting point for @MHDante 's idea

) -> typing.Awaitable[global___DummyReply]: ...


def add_DummyAsyncServiceServicer_to_server(servicer: DummyAsyncServiceServicer, server: grpc.Server) -> None: ...
Copy link
Owner Author

Choose a reason for hiding this comment

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

should be server: grpc.aio.Server - but held off on that change until some minimal stub gets into grpc-stubs

@abc.abstractmethod
def UnaryUnary(self,
request: global___DummyRequest,
context: grpc.ServicerContext,
Copy link
Owner Author

Choose a reason for hiding this comment

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

I suppose we'd want two separate ServicerContext here - depending on whether it's a synchronous service or not - but that's out of my realm of expertise.

@nipunn1313 nipunn1313 mentioned this pull request Aug 18, 2021
@nipunn1313 nipunn1313 closed this Aug 19, 2021
@nipunn1313
Copy link
Owner Author

closing based on conversation in #217

@nipunn1313 nipunn1313 deleted the async_grpc branch August 28, 2021 06:31
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.

1 participant