Completion

interface Completion<T>

Completion interface

Parameters

T

type of completion

Functions

Link copied to clipboard
open fun error(error: Exception)
abstract fun error(error: Throwable)

Called when an error occurs

Link copied to clipboard
abstract fun success(data: T)

Called on success with required data of type T