Libraryless. Click here for Pure Java version (4547L/25K).
static <A> A waitForVarToBecome(Var<A> v, A wantedValue) ctex { synchronized(v) { while (!eq(wantedValue, v!)) v.wait(); ret v!; } }
Began life as a copy of #1016545
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1033322 |
| Snippet name: | waitForVarToBecome |
| Eternal ID of this version: | #1033322/3 |
| Text MD5: | 8aff9f83eb6993eb76aa9b2832a45dbe |
| Transpilation MD5: | 394d7b5f80d7c0f7471d29d04f6e49d1 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-10-23 02:44:41 |
| Source code size: | 160 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 363 / 475 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |