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

71
LINES

< > BotCompany Repo | #1020081 // dm_vmBus_onMessage_q - execute in module's queue

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

Libraryless. Click here for Pure Java version (10257L/72K).

ifclass VF1
static <A> AutoCloseable mapMethodLike dm_vmBus_onMessage_q(fS msg, final VF1<A> onMessage) {
  final DynModule m = dm_current_mandatory();
  ret dm_vmBus_onMessage(msg, voidfunc(final A a) {
    switch to m.q();
    callF(onMessage, a);
  });
}
endif

static <A> AutoCloseable mapMethodLike dm_vmBus_onMessage_q(fS msg, final IVF1<A> onMessage) {
  final DynModule m = dm_current_mandatory();
  ret dm_vmBus_onMessage(msg, voidfunc(final A a) {
    switch to m.q();
    callF(onMessage, a);
  });
}

static <A, B> AutoCloseable mapMethodLike dm_vmBus_onMessage_q(fS msg, final IVF2<A, B> onMessage) {
  final DynModule m = dm_current_mandatory();
  ret dm_vmBus_onMessage(msg, voidfunc(A a, B b) {
    switch to m.q();
    callF(onMessage, a, b);
  });
}

static <A, B, C> AutoCloseable mapMethodLike dm_vmBus_onMessage_q(fS msg, final IVF3<A, B, C> onMessage) {
  DynModule m = dm_current_mandatory();
  ret dm_vmBus_onMessage(msg, voidfunc(A a, B b, C c) {
    switch to m.q();
    callF(onMessage, a, b, c);
  });
}

ifclass VF2
static <A, B> AutoCloseable dm_vmBus_onMessage_q(fS msg, final VF2<A, B> onMessage) {
  final DynModule m = dm_current_mandatory();
  ret dm_vmBus_onMessage(msg, voidfunc(final A a, final B b) {
    switch to m.q();
    callF(onMessage, a, b);
  });
}
endif

ifclass VF3
static <A, B, C> AutoCloseable dm_vmBus_onMessage_q(fS msg, final VF3<A, B, C> onMessage) {
  final DynModule m = dm_current_mandatory();
  ret dm_vmBus_onMessage(msg, voidfunc(final A a, final B b, final C c) {
    switch to m.q();
    callF(onMessage, a, b, c);
  });
}
endif

ifclass VF4
static <A, B, C, D> AutoCloseable dm_vmBus_onMessage_q(fS msg, final VF4<A, B, C, D> onMessage) {
  final DynModule m = dm_current_mandatory();
  ret dm_vmBus_onMessage(msg, voidfunc(final A a, final B b, final C c, D d) {
    switch to m.q();
    callF(onMessage, a, b, c, d);
  });
}
endif

static <A> AutoCloseable dm_vmBus_onMessage_q(fS msg, final Runnable onMessage) {
  final DynModule m = dm_current_mandatory();
  ret dm_vmBus_onMessage(msg, voidfunc(final A a) {
    switch to m.q();
    callF(onMessage);
  });
}

Author comment

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: 516 / 663
Version history: 11 change(s)
Referenced in: [show references]