Warning: session_start(): open(/var/lib/php/sessions/sess_73oc2hmo2ceclmffopj3id5e9o, 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
linkVarsVerbose [1034555]

Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #1034555 // linkVarsVerbose

JavaX fragment (include)

static <A> void linkVarsVerbose(IVarWithNotify<A> var1, IVarWithNotify<A> var2) {
  if (var1 == null || var2 == null) ret;
  var2.onChange(value -> {
    print("linkVars: Setting var1 to " + value);
    var1.set(value);
  });
  var1.onChangeAndNow(value -> {
    print("linkVars: Setting var2 to " + value);
    var2.set(value);
  });
}

Author comment

Began life as a copy of #1034554

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034555
Snippet name: linkVarsVerbose
Eternal ID of this version: #1034555/1
Text MD5: 9cbcd4b6f99e54a7324d80a948d83d7c
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-12 22:54:21
Source code size: 346 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 587 / 576
Referenced in: [show references]