Libraryless. Click here for Pure Java version (10257L/72K).
1 | ifclass VF1 |
2 | static <A> AutoCloseable mapMethodLike dm_vmBus_onMessage_q(fS msg, final VF1<A> onMessage) { |
3 | final DynModule m = dm_current_mandatory(); |
4 | ret dm_vmBus_onMessage(msg, voidfunc(final A a) { |
5 | switch to m.q(); |
6 | callF(onMessage, a); |
7 | }); |
8 | } |
9 | endif |
10 | |
11 | static <A> AutoCloseable mapMethodLike dm_vmBus_onMessage_q(fS msg, final IVF1<A> onMessage) { |
12 | final DynModule m = dm_current_mandatory(); |
13 | ret dm_vmBus_onMessage(msg, voidfunc(final A a) { |
14 | switch to m.q(); |
15 | callF(onMessage, a); |
16 | }); |
17 | } |
18 | |
19 | static <A, B> AutoCloseable mapMethodLike dm_vmBus_onMessage_q(fS msg, final IVF2<A, B> onMessage) { |
20 | final DynModule m = dm_current_mandatory(); |
21 | ret dm_vmBus_onMessage(msg, voidfunc(A a, B b) { |
22 | switch to m.q(); |
23 | callF(onMessage, a, b); |
24 | }); |
25 | } |
26 | |
27 | static <A, B, C> AutoCloseable mapMethodLike dm_vmBus_onMessage_q(fS msg, final IVF3<A, B, C> onMessage) { |
28 | DynModule m = dm_current_mandatory(); |
29 | ret dm_vmBus_onMessage(msg, voidfunc(A a, B b, C c) { |
30 | switch to m.q(); |
31 | callF(onMessage, a, b, c); |
32 | }); |
33 | } |
34 | |
35 | ifclass VF2 |
36 | static <A, B> AutoCloseable dm_vmBus_onMessage_q(fS msg, final VF2<A, B> onMessage) { |
37 | final DynModule m = dm_current_mandatory(); |
38 | ret dm_vmBus_onMessage(msg, voidfunc(final A a, final B b) { |
39 | switch to m.q(); |
40 | callF(onMessage, a, b); |
41 | }); |
42 | } |
43 | endif |
44 | |
45 | ifclass VF3 |
46 | static <A, B, C> AutoCloseable dm_vmBus_onMessage_q(fS msg, final VF3<A, B, C> onMessage) { |
47 | final DynModule m = dm_current_mandatory(); |
48 | ret dm_vmBus_onMessage(msg, voidfunc(final A a, final B b, final C c) { |
49 | switch to m.q(); |
50 | callF(onMessage, a, b, c); |
51 | }); |
52 | } |
53 | endif |
54 | |
55 | ifclass VF4 |
56 | static <A, B, C, D> AutoCloseable dm_vmBus_onMessage_q(fS msg, final VF4<A, B, C, D> onMessage) { |
57 | final DynModule m = dm_current_mandatory(); |
58 | ret dm_vmBus_onMessage(msg, voidfunc(final A a, final B b, final C c, D d) { |
59 | switch to m.q(); |
60 | callF(onMessage, a, b, c, d); |
61 | }); |
62 | } |
63 | endif |
64 | |
65 | static <A> AutoCloseable dm_vmBus_onMessage_q(fS msg, final Runnable onMessage) { |
66 | final DynModule m = dm_current_mandatory(); |
67 | ret dm_vmBus_onMessage(msg, voidfunc(final A a) { |
68 | switch to m.q(); |
69 | callF(onMessage); |
70 | }); |
71 | } |
Began life as a copy of #1019799
download show line numbers debug dex old transpilations
Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1020081 |
Snippet name: | dm_vmBus_onMessage_q - execute in module's queue |
Eternal ID of this version: | #1020081/12 |
Text MD5: | d4466f4fef949644688955e35ab6f238 |
Transpilation MD5: | 402e2d2c7573c630c3928116058067a1 |
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-04-04 18:45:00 |
Source code size: | 2200 bytes / 71 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 521 / 672 |
Version history: | 11 change(s) |
Referenced in: | [show references] |