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

18
LINES

< > BotCompany Repo | #1026764 // ELE: Suggestion Collector [dev.]

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 911K of libraries. Click here for Pure Java version (7535L/37K).

!7

cmodule ELESuggestionCollector > ELESuggester {
  void process_impl(S input) {
    thread {
      repeat 50 { // TODO: better handling
        sleepSeconds(0.1);
        collectData(input);
      }
    }
  }
  
  void collectData(S input) {
    LS moduleIDs = vmBus_queryAll eleSuggester();
    LLS allLists = dm_optPcallAll(moduleIDs, 'suggestions);
    showSuggestions(input, mapNonNulls first(allLists));
  }  
}

Author comment

Began life as a copy of #1026748

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: #1026764
Snippet name: ELE: Suggestion Collector [dev.]
Eternal ID of this version: #1026764/4
Text MD5: 7f12e1795f130103661a5aaaa748e3ff
Transpilation MD5: b6f7bb612946aef3c510f8059e5b2be9
Author: stefan
Category: javax / ele
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-21 14:45:46
Source code size: 436 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 114 / 233
Version history: 3 change(s)
Referenced in: [show references]