Uses 911K of libraries. Click here for Pure Java version (2387L/13K).
!7 cprint { start-thread { ReliableSingleThread rst = dm_rst(r { printWithMS("rst thread " + currentThreadID()); busySleepSeconds_noPing(1); printWithMS("rst thread " + currentThreadID() + " done"); }); rst.go(); sleepSeconds(0.5); rst.cancelAndTrigger(); } }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028804 |
Snippet name: | Test ReliableSingleThread cancelling (seems to work, second thread waits for first one to finish) |
Eternal ID of this version: | #1028804/4 |
Text MD5: | 5ea30d609b3f57d811cfaf19b14b9d31 |
Transpilation MD5: | 29d3fed00a90843d950d9b2a1c248c07 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code (Dynamic Module) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-07-09 10:49:34 |
Source code size: | 315 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 267 / 391 |
Version history: | 3 change(s) |
Referenced in: | [show references] |