← Back to Kairo Docs|API Reference (Dokka)

LifecycleHandlerBuilder

Builder for a single lifecycle handler. Define start and stop blocks.

Functions

Link copied to clipboard
fun start(block: suspend (features: List<Feature>) -> Unit)

Registers the start block. Receives the full list of Features in the Server.

Link copied to clipboard
fun stop(block: suspend (features: List<Feature>) -> Unit)

Registers the stop block. Receives the full list of Features in the Server.