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

6
LINES

< > BotCompany Repo | #1015312 // waitForVarToBeNotNull

JavaX fragment (include)

static <A> A waitForVarToBeNotNull(Var<A> v) ctex {
  synchronized(v) {
    while (!v.has()) v.wait();
    ret v!;
  }
}
  

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1015312
Snippet name: waitForVarToBeNotNull
Eternal ID of this version: #1015312/1
Text MD5: 1665cc46b2ae531a5958b4055c95b499
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-12 18:20:27
Source code size: 129 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 378 / 451
Referenced in: [show references]