Libraryless. Click here for Pure Java version (3049L/17K).
1 | static <A> AutoCloseable vmBus_onMessages_many(Collection<S> messages, final Runnable r) { |
2 | final Set<S> set = asSet(messages); |
3 | ret tempAdd(vm_busListeners_live(), voidfunc(S msg, O arg) { |
4 | if (contains(set, msg)) |
5 | callF(r); |
6 | }); |
7 | } |
8 | |
9 | static <A> AutoCloseable vmBus_onMessages_many(Runnable r, S... messages) { |
10 | ret vmBus_onMessages_many(asHashSet(messages), r); |
11 | } |
Began life as a copy of #1019006
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031790 |
Snippet name: | vmBus_onMessages_many - try to avoid this, it slows the VM bus down generally |
Eternal ID of this version: | #1031790/1 |
Text MD5: | 2256616705ff00617d40cd7dab2d2b08 |
Transpilation MD5: | f1b6adea29578e600ead48ced2c40d35 |
Author: | stefan |
Category: | javax / vm |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-06-29 21:58:49 |
Source code size: | 385 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 128 / 199 |
Referenced in: | [show references] |