Libraryless. Click here for Pure Java version (2522L/16K).
1 | static AutoCloseable temp_printPrefix (S prefix) {
|
2 | O oldValue = print_byThread(); |
3 | print_setPrefixForThread(prefix); |
4 | ret autoCloseable { print_byThread().set(oldValue); };
|
5 | } |
Began life as a copy of #1008118
download show line numbers debug dex old transpilations
Travelled to 5 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1029815 |
| Snippet name: | temp_printPrefix - temporarily set prefix for all print() in thread |
| Eternal ID of this version: | #1029815/3 |
| Text MD5: | 362249e82d5a2f233f3182623abc75e5 |
| Transpilation MD5: | 31c6b2e325f4160226be6afd81712af6 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-09-18 18:46:35 |
| Source code size: | 182 bytes / 5 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 436 / 568 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |