---
title: "CompletionCallback"
sidebar_label: "CompletionCallback"
description: "Kotlin binding reference: CompletionCallback."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[CompletionCallback](index.md)

# CompletionCallback

[common]\
fun interface [CompletionCallback](index.md)

Called once at a session's end, on the engine's thread, with its response or its failure (the other is null); never block in it.

## Functions

| Name | Summary |
|---|---|
| [run](run.md) | [common]<br>abstract fun [run](run.md)(response: [Response](../Response/index.md)?, failure: [ClikaRtException](../ClikaRtException/index.md)?) |