Skip to main content

GrpcCheckpointStream

open class GrpcCheckpointStream : Disposable, AutoCloseable, GrpcCheckpointStreamInterface

A stream of checkpoints returned by GrpcClient::checkpoints_stream.

Call next in a loop to receive items; it returns None once the stream is exhausted or cancel has been called.

Functions​

NameSummary
cancelopen override fun cancel()
Cancel the stream, dropping the connection and unblocking a pending next.
close@Synchronized
open override fun close()
destroyopen override fun destroy()
isCanceledopen override fun isCanceled(): Boolean
Whether the stream has been canceled.
nextopen suspend override fun next(): GrpcCheckpointResponse?
Get the next item from the stream.