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

15
LINES

< > BotCompany Repo | #1019800 // dm_q - get current module's queue, or add code to queue

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

Libraryless. Click here for Pure Java version (10328L/73K).

static Q dm_q() {
  ret dm_current_mandatory().q();
}

svoid dm_q(Runnable r) {
  dm_inQ(r);
}

svoid dm_q(DynModule module, Runnable r) {
  module.q().add(r);
}

static <A> A dm_q(IF0<A> f) {
  ret dm_evalInQ(if0ToF0(f));
}

Author comment

Began life as a copy of #1019799

download  show line numbers  debug dex  old transpilations   

Travelled to 11 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1019800
Snippet name: dm_q - get current module's queue, or add code to queue
Eternal ID of this version: #1019800/6
Text MD5: 4f3606e52b49e49ade5f157b25ec8cae
Transpilation MD5: e57f0448adb0006f7705168e7df05373
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-23 18:11:59
Source code size: 238 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 339 / 2898
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1020722 - dm_inQ - add code to current module's queue
#1020856 - r_dm_q - dm_q as Runnable
#1022571 - dm_runInQAndWait