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!
the new value