Uses 1059K of libraries. Click here for Pure Java version (6724L/33K).
!7 cmodule2 AutoReloadButtons > DynPrintLogAndEnabled { switchable int delay = 5; // seconds start { dm_onSnippetTranspiled(voidfunc(S snippetID) { if (!enabled) ret; if (empty(dm_modulesWithSnippetID(snippetID))) ret; dm_action("Reloading module " + snippetID + " in " + delay + "...", r { sleepSeconds(delay); dm_reloadAllModulesWithSnippetID(snippetID); }); }); } bool warnOnDelete() { true; } }
Began life as a copy of #1021905
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1030826 | 
| Snippet name: | Auto-Update Modules With Delay | 
| Eternal ID of this version: | #1030826/6 | 
| Text MD5: | 9b1afe6834b771ad7a906984310f248b | 
| Transpilation MD5: | a6d6e2186da7568911864efbb24935a0 | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX source code (Dynamic Module) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2021-03-31 16:15:41 | 
| Source code size: | 486 bytes / 19 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 365 / 3938 | 
| Version history: | 5 change(s) | 
| Referenced in: | [show references] |