Libraryless. Click here for Pure Java version (5426L/32K).
1 | sclass WithPollValue<A> extends LazyVar<A> {
|
2 | O pollValue = noPoll; |
3 | |
4 | // indicates no polling needed |
5 | static new O noPoll; |
6 | |
7 | *() {}
|
8 | *(O *pollValue, IF0<A> makeValue) { super(makeValue); }
|
9 | *(O *pollValue, A value) { super(value); }
|
10 | |
11 | O pollValue() { ret pollValue; }
|
12 | |
13 | toString { ret "WithPollValue " + pollValue + " " + super.toString(); }
|
14 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1032673 |
| Snippet name: | WithPollValue |
| Eternal ID of this version: | #1032673/6 |
| Text MD5: | c85aa99f17a002f32720ed6d1a138b1f |
| Transpilation MD5: | 5670d89b85b31194723518a9d6bb13ab |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-10-04 05:09:38 |
| Source code size: | 370 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 418 / 599 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |