Libraryless. Click here for Pure Java version (5313L/30K).
set flag VarWithNotify_debug. set flag varWithNotifyToLiveValue_debug. svoid test_varWithNotifyToLiveValue() { new VarWithNotify<S> var; var lv = varWithNotifyToLiveValue(S, var); new Flag flag; lv.onChange(flag); var.set("hello"); assertIsUp(flag); assertEqualsVerbose("hello", lv!); }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034096 |
Snippet name: | test_varWithNotifyToLiveValue |
Eternal ID of this version: | #1034096/8 |
Text MD5: | 178ec6580591fa7a249d55fedc2552cd |
Transpilation MD5: | d275bdc109c33436fb44523230533fc1 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-21 20:35:08 |
Source code size: | 312 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 137 / 246 |
Version history: | 7 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |