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

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

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

# onIterate

[common]\
fun [onIterate](onIterate.md)(name: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), body: [IterateBody](../IterateBody/index.md)): [FunctionModel](index.md)

Bind the body of the iterate phase named [name](onIterate.md) (stepped over the active batch until each session finishes). Returns this for chaining.