get

fun get(): T(source)

获取当前值,无锁。


suspend fun <R> get(function: suspend (T) -> R): R(source)

获取当前值,可同时锁内执行一些操作。

See also