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

11
LINES

< > BotCompany Repo | #1027538 // dm_listModulesAndTimers

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2885L/18K).

// pairs are (module ID, FixedRateTimer)
static LPair<S, O> dm_listModulesAndTimers() {
  new LPair<S, O> out;
  for (S mod : dm_moduleIDs()) {
    Map map = cast dm_getOpt(mod, 'timers);
    L timers = filterByShortName FixedRateTimer(keys(map));
    fOr (O timer : timers)
      out.add(pair(mod, timer));
  }
  ret out;
}

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: #1027538
Snippet name: dm_listModulesAndTimers
Eternal ID of this version: #1027538/2
Text MD5: 689505244556c4013337a24aa835d26f
Transpilation MD5: 0c86a5d4c06d35f62d3b6f26e96125cb
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-23 12:57:30
Source code size: 334 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 138 / 203
Version history: 1 change(s)
Referenced in: [show references]