Scalapb: [feature request] Add possibility to abstract over `Future` in `AbstractService` child methods

Created on 28 Jan 2020  路  3Comments  路  Source: scalapb/ScalaPB

I'm trying to use scalabp gRPC in zio program and i'v ended up with using unsfeRun just to implement actions for Service interface.
i mean that i would like to get
scala trait SettingsService[F[_]] extends AbstractService { // ... def getSettings(request: SettingsRequest): F[SettingsResponse] }

Most helpful comment

@holinov I put a new experimental ScalaPB/gGRC/ZIO integration at https://github.com/scalapb/zio-grpc/

There are snapshots published to sonatype, so it's pretty easy to test it out. There are example client and servers here: https://github.com/scalapb/zio-grpc/tree/master/examples

All 3 comments

@holinov , stay tuned - full zio support for ScalaPB is coming soon! I'll put together a proof-of-concept for you to try in the coming days.

@holinov I put a new experimental ScalaPB/gGRC/ZIO integration at https://github.com/scalapb/zio-grpc/

There are snapshots published to sonatype, so it's pretty easy to test it out. There are example client and servers here: https://github.com/scalapb/zio-grpc/tree/master/examples

Closing this as zio-grpc is now available.

Was this page helpful?
0 / 5 - 0 ratings