SyncValue

class SyncValue<T>(initialValue: T)

Constructors

Link copied to clipboard
constructor(initialValue: T)

Properties

Link copied to clipboard
var value: T

Functions

Link copied to clipboard
suspend fun getAndSet(newValue: T): T
Link copied to clipboard
suspend fun mutate(f: suspend (T) -> T): T