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

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

//[clika-runtime](../../../index.md)/[io.clika.modelverse](../index.md)/[Server](index.md)/[waitUntilReady](waitUntilReady.md)

# waitUntilReady

[common]\
fun [waitUntilReady](waitUntilReady.md)(timeoutMs: [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) = DEFAULT_READY_TIMEOUT_MS)

Block until `/health` answers, polling every POLL_MS milliseconds up to [timeoutMs](waitUntilReady.md); throws [ModelverseException](../ModelverseException/index.md) at the deadline.