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

4
LINES

< > BotCompany Repo | #1003403 // pcallFunction - safely call a Runnable, function object or function name

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

Libraryless. Click here for Pure Java version (9908L/54K).

static O pcallFunction(O f, O... args) {
  pcall { ret callFunction(f, args); }
  null;
}

Author comment

Began life as a copy of #1003313

download  show line numbers  debug dex  old transpilations   

Travelled to 23 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ekrmjmnbrukm, elmgxqgtpvxh, gwrvuhgaqvyk, ishqpsrjomds, jcllbfdqhrgy, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, onxytkatvevr, podlckwnjdmb, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, uelavcdoioby, vouqrxazstgt, whxojlpjdney, wnsclhtenguj, yanjaxplzisb

No comments. add comment

Snippet ID: #1003403
Snippet name: pcallFunction - safely call a Runnable, function object or function name
Eternal ID of this version: #1003403/1
Text MD5: 660bcb303f01de30d3aa92a2854aad85
Transpilation MD5: da1c2dca2204d9c01dbf5b20c2cfe007
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-10-30 21:39:52
Source code size: 92 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 722 / 4116
Referenced in: [show references]