set

fun set(value: T)

Sets current value and notifies all the attached listeners

IMPORTANT: This should only be called from the main thread! If it isn't, it can race with other set() calls!

Parameters

value

the new value