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

23
LINES

< > BotCompany Repo | #1020796 - dm_vmBus_answerToMessage

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

Libraryless. Click here for Pure Java version (9889L/71K).

static AutoCloseable mapMethodLike dm_vmBus_answerToMessage(S msg, final IF0 f) {
  final DynModule m = dm_current_mandatory();
  ret dm_ownResource(vmBus_addListener_basic(msg, func(S _msg, O arg) {
    temp m.enter();
    ret callF(f);
  }));
}

static AutoCloseable mapMethodLike dm_vmBus_answerToMessage(S msg, final F0 f) {
  final DynModule m = dm_current_mandatory();
  ret dm_ownResource(vmBus_addListener_basic(msg, func(S _msg, O arg) {
    temp m.enter();
    ret callF(f);
  }));
}

static AutoCloseable dm_vmBus_answerToMessage(S msg, final F1 f) {
  final DynModule m = dm_current_mandatory();
  ret dm_ownResource(vmBus_addListener_basic(msg, func(S _msg, O arg) {
    temp m.enter();
    ret callF(f, arg);
  }));
}

download  show line numbers  debug dex   

Travelled to 3 computer(s): cfunsshuasjs, mqqgnosmbjvj, tvejysmllsmz

No comments. add comment

Snippet ID: #1020796
Snippet name: dm_vmBus_answerToMessage
Eternal ID of this version: #1020796/8
Text MD5: 866b58519d28f1e2efbcc43b96ea299a
Transpilation MD5: 9e597aa5da4c19b082c812071dd6f908
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-09-01 00:33:54
Source code size: 753 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 126 / 151
Version history: 7 change(s)
Referenced in: [show references]

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