Companion

object Companion

Functions

Link copied to clipboard

Get the current agent process for this thread, if any.

Link copied to clipboard
inline fun <T> AgentProcess.withCurrent(block: () -> T): T

Execute a block with this AgentProcess as the current process for the thread. Properly saves and restores any previous value, ensuring cleanup even on exception.