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

6
LINES

< > BotCompany Repo | #1016545 // waitForVarToChange

JavaX fragment (include)

1  
static <A> A waitForVarToChange(Var<A> v, A knownValue) ctex {
2  
  synchronized(v) {
3  
    while (eq(knownValue, v!)) v.wait();
4  
    ret v!;
5  
  }
6  
}

Author comment

Began life as a copy of #1015312

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016545
Snippet name: waitForVarToChange
Eternal ID of this version: #1016545/3
Text MD5: 1cfc9f141052cce559e4308b692d6513
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-10-18 16:49:52
Source code size: 150 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 269 / 322
Version history: 2 change(s)
Referenced in: [show references]