Libraryless. Click here for Pure Java version (6015L/35K).
1 | static IProbabilistic runnableToProbabilistic(Runnable r) { |
2 | ret r == null ?: new Probabilistic { run { r.run(); } }; |
3 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033146 |
Snippet name: | runnableToProbabilistic - a Runnable is trivially probabilistic by just running it |
Eternal ID of this version: | #1033146/1 |
Text MD5: | f90df350ecf6925c3ab67825913877ac |
Transpilation MD5: | 4c0a6c7f4c304c8b71507309f739f8cb |
Author: | stefan |
Category: | javax / probabilistic scheduling |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-15 18:47:32 |
Source code size: | 122 bytes / 3 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 135 / 198 |
Referenced in: | [show references] |