lockStyles

fun <T> lockStyles(action: RunTree<String>.() -> T): T

Access the styledRanges in the action while holding the lock.

Parameters

action

The action to perform with styledRanges while holding the lock.