Libraryless. Click here for Pure Java version (6015L/35K).
static IProbabilistic runnableToProbabilistic(Runnable r) { ret r == null ?: new Probabilistic { run { r.run(); } }; }
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: | 337 / 456 |
| Referenced in: | [show references] |