Libraryless. Click here for Pure Java version (3893L/22K).
1 | static <A> L<A> syncTakeFirst(Cl<A> l, int n) { |
2 | if (l == null) null; |
3 | synchronized(collectionMutex(l)) { |
4 | ret takeFirst(n, l); |
5 | } |
6 | } |
7 | |
8 | static <A> L<A> syncTakeFirst(int n, Cl<A> l) { |
9 | ret syncTakeFirst(l, n); |
10 | } |
Began life as a copy of #1007549
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025950 |
Snippet name: | syncTakeFirst function - takeFirst + synchronize |
Eternal ID of this version: | #1025950/6 |
Text MD5: | 07e308fe10013d888d096fbf2b947ff9 |
Transpilation MD5: | dc9b238515ccdb8a75f5b4ab4c685a3a |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-10-06 09:39:14 |
Source code size: | 225 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 221 / 329 |
Version history: | 5 change(s) |
Referenced in: | [show references] |