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)

static L mapMethodLike vmBus_queryAll(S msg, O... args) {
  O arg = vmBus_wrapArgs(args);
  new L out;
  for unnull (O o : vm_busListeners_live())
    addIfNotNull(out, pcallF(o, msg, arg));
  for unnull (O o : vm_busListenersByMessage_live().get(msg))
    addIfNotNull(out, pcallF(o, msg, arg));
  ret out;
}

Author comment

Began life as a copy of #1020795

download  show line numbers  debug dex   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, mqsvbyillbrs, pzhvpgtvlbxg, tvejysmllsmz, 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: 100 / 130
Version history: 3 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1022562 & http://1022562.tinybrain.de