onClose

Available in a dev version: 0․11․0-grpc-186

How to configure

abstract fun onClose(block: (status: GrpcStatus, responseTrailers: GrpcMetadata) -> Unit)(source)

Register a callback invoked when the call completes, successfully or not. The final status and trailing responseTrailers are provided.