KiteLock

expect class KiteLock(source)

A minimal reentrant mutual-exclusion lock. JVM/Android wrap ReentrantLock, native targets a reentrant atomic spinlock, JS/Wasm are single-threaded no-ops. Use through withLock.

Engine-internal plumbing that must cross module boundaries (the handlers synchronize their document caches with it); not a public concurrency API.

Constructors

Link copied to clipboard
expect constructor()

Functions

Link copied to clipboard
expect fun lock()
Link copied to clipboard
expect fun unlock()
Link copied to clipboard
inline fun <T> KiteLock.withLock(block: () -> T): T