1 | svoid addToQWithMaxSize_verbose(int maxSize, S queueName, Q q, Runnable r) {
|
2 | if (q == null) ret; |
3 | if (q.size() >= maxSize) |
4 | ret with print(queueName + " sized " + q.size() + ": dropping " + runnableToStringShort(r)); |
5 | addToQAndPrintSize(queueName, q, r); |
6 | } |
Began life as a copy of #1027057
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: | #1027061 |
| Snippet name: | addToQWithMaxSize_verbose |
| Eternal ID of this version: | #1027061/2 |
| Text MD5: | 0c0904e6510996b20997c022bb1beb9d |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-02-16 16:28:13 |
| Source code size: | 268 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 525 / 570 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |