Transpiled version (5907L) is out of date.
1 | static <A> A waitUntilNotNull(Var<A> v) { |
2 | ret waitForVarToBeNotNull(v); |
3 | } |
4 | |
5 | ifclass IVarWithNotify |
6 | static <A> A waitUntilNotNull(IVarWithNotify<A> v) { |
7 | new Var<A> myVar; |
8 | temp tempOnChangeAndNow(v, -> myVar.set(v!)); |
9 | ret waitUntilNotNull(myVar); |
10 | } |
11 | endif |
12 | |
13 | ifclass VarWithNotify |
14 | static <A> A waitUntilNotNull(VarWithNotify<A> v) { |
15 | ret waitUntilNotNull((Var<A>) v); |
16 | } |
17 | endif |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
Snippet ID: | #1032125 |
Snippet name: | waitUntilNotNull - synonym of waitForVarToBeNotNull + IVarWithNotify |
Eternal ID of this version: | #1032125/7 |
Text MD5: | df5506c98cd6674a1f622fa14c737a6c |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-08 09:17:54 |
Source code size: | 394 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 198 / 279 |
Version history: | 6 change(s) |
Referenced in: | [show references] |