Warning: session_start(): open(/var/lib/php/sessions/sess_6sm3hdjjhohrf4m92ut3d3deb3, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static SimpleLiveValue varWithNotifyToLiveValue(Class type, IVarWithNotify var) {
if (var == null) null;
var lv = new SimpleLiveValue(type);
var lvRef = weakRef(lv);
var.onChange(r {
var lv = lvRef!;
print ifdef varWithNotifyToLiveValue_debug("varWithNotifyToLiveValue var.onChange " + lv);
if (lv == null)
var.removeChangeListener(this);
else {
var value = var!;
print ifdef varWithNotifyToLiveValue_debug("varWithNotifyToLiveValue value " + value);
lv.set(value);
}
});
lv.onChange(-> var.set(lv!));
lv.set(var!);
ret lv;
}