1 | static <A> A waitForVarToBeNotNull(Var<A> v) ctex { |
2 | synchronized(v) { |
3 | while (!v.has()) v.wait(); |
4 | ret v!; |
5 | } |
6 | } |
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: | 398 / 473 |
Referenced in: | [show references] |