Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1022562 // vmBus_queryAll - send with return values; return all non-null results

JavaX fragment (include)

1  
static L mapMethodLike vmBus_queryAll(S msg, O... args) {
2  
  O arg = vmBus_wrapArgs(args);
3  
  new L out;
4  
  for unnull (O o : vm_busListeners_live())
5  
    addIfNotNull(out, pcallF(o, msg, arg));
6  
  for unnull (O o : vm_busListenersByMessage_live().get(msg))
7  
    addIfNotNull(out, pcallF(o, msg, arg));
8  
  ret out;
9  
}

Author comment

Began life as a copy of #1020795

download  show line numbers  debug dex  old transpilations   

Travelled to 10 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, mqsvbyillbrs, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1022562
Snippet name: vmBus_queryAll - send with return values; return all non-null results
Eternal ID of this version: #1022562/4
Text MD5: 094f93a0a51a155e11cbab44405fd961
Author: stefan
Category: javax / vm
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-06-22 01:14:37
Source code size: 317 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 366 / 407
Version history: 3 change(s)
Referenced in: [show references]