koog
Toggle table of contents
1.0.0
common
Target filter
common
Switch theme
Search in API
Skip to content
koog
agents-utils
/
ai.koog.agents.lock
/
KeyedMutex
/
tryLock
try
Lock
suspend
fun
tryLock
(
key
:
K
,
owner
:
Any
?
=
null
)
:
Boolean
(
source
)
Attempts to acquire the lock for
key
without suspension. Returns true if a lock was acquired.