CompletionCallback

A callback interface for handling asynchronous task completion with a result or an error.

Parameters

T

The type of the result.

Functions

Link copied to clipboard
abstract fun onError(throwable: Throwable)

Called when an error occurs during the task execution.

Link copied to clipboard
abstract fun onSuccess(result: T)

Called when the task completes successfully.