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).

1  
static Q dm_q() {
2  
  ret dm_current_mandatory().q();
3  
}
4  
5  
svoid dm_q(Runnable r) {
6  
  dm_inQ(r);
7  
}
8  
9  
svoid dm_q(DynModule module, Runnable r) {
10  
  module.q().add(r);
11  
}
12  
13  
static <A> A dm_q(IF0<A> f) {
14  
  ret dm_evalInQ(if0ToF0(f));
15  
}

Author comment

Began life as a copy of #1019799

download  show line numbers  debug dex   

Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, 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: 145 / 2035
Version history: 5 change(s)
Referenced in: [show references]

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