Libraryless. Click here for Pure Java version (13217L/82K).
1 | static AutoCloseable mapMethodLike dm_vmBus_answerToMessage(S msg, final IF0 f) { |
2 | final DynModule m = dm_current_mandatory(); |
3 | ret dm_ownResource(vmBus_addListener_basic(msg, func(S _msg, O arg) { |
4 | temp m.enter(); |
5 | ret callF(f); |
6 | })); |
7 | } |
8 | |
9 | static AutoCloseable mapMethodLike dm_vmBus_answerToMessage(S msg, final F0 f) { |
10 | final DynModule m = dm_current_mandatory(); |
11 | ret dm_ownResource(vmBus_addListener_basic(msg, func(S _msg, O arg) { |
12 | temp m.enter(); |
13 | ret callF(f); |
14 | })); |
15 | } |
16 | |
17 | static AutoCloseable dm_vmBus_answerToMessage(S msg, final F1 f) { |
18 | final DynModule m = dm_current_mandatory(); |
19 | ret dm_ownResource(vmBus_addListener_basic(msg, func(S _msg, O arg) { |
20 | temp m.enter(); |
21 | ret callF(f, arg); |
22 | })); |
23 | } |
24 | |
25 | static AutoCloseable dm_vmBus_answerToMessage(S msg, F2 f) { |
26 | final DynModule m = dm_current_mandatory(); |
27 | ret dm_ownResource(vmBus_addListener_basic(msg, func(S _msg, O arg) { |
28 | if (arg cast O[]) { |
29 | if (arg.length != 2) null; |
30 | temp m.enter(); |
31 | ret callF(f, arg[0], arg[1]); |
32 | } |
33 | null; |
34 | })); |
35 | } |
36 | |
37 | static AutoCloseable dm_vmBus_answerToMessage(S msg, F3 f) { |
38 | final DynModule m = dm_current_mandatory(); |
39 | ret dm_ownResource(vmBus_addListener_basic(msg, func(S _msg, O arg) { |
40 | if (arg cast O[]) { |
41 | if (arg.length != 3) null; |
42 | temp m.enter(); |
43 | ret callF(f, arg[0], arg[1], arg[2]); |
44 | } |
45 | null; |
46 | })); |
47 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020796 |
Snippet name: | dm_vmBus_answerToMessage |
Eternal ID of this version: | #1020796/10 |
Text MD5: | 14b53859f3761335aae2e41ae3ca4777 |
Transpilation MD5: | 0a3078887c7e2deff670393aed057e0c |
Author: | stefan |
Category: | javax / stefan's os |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-08-10 18:14:18 |
Source code size: | 1425 bytes / 47 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 442 / 595 |
Version history: | 9 change(s) |
Referenced in: | [show references] |