rouzwawi / grpc-kotlin

gRPC with Kotlin Coroutines
https://gitter.im/gRPC-Kotlin/Lobby
Apache License 2.0
220 stars 23 forks source link

Parameterize server send channel capacity #14

Closed rouzwawi closed 6 years ago

rouzwawi commented 6 years ago

This allows a server implementation to specify the channel capacity of channels created for server streaming calls. Defaults to Channel.UNLIMITED.

class GreeterImpl : GreeterGrpcKt.GreeterImplBase(
    sendChannelCapacity = 4
) {
    // server handlers
}