TerminatingResultHandler

A result handler with a method that notifies when all data has been processed.

Constructors

Link copied to clipboard
constructor(initialState: State)

Properties

Link copied to clipboard

The state of the result handler. This can be read, but not updated by analyzers.

Functions

Link copied to clipboard
abstract suspend fun onAllDataProcessed()

All data has been processed and termination was reached.

Link copied to clipboard
abstract suspend fun onResult(result: Output, data: Input)
Link copied to clipboard
abstract suspend fun onTerminatedEarly()

Not all data was processed before termination.