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

23
LINES

< > BotCompany Repo | #1030071 // evalWithTimeoutOrFail - preferred function to use now

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

Libraryless. Click here for Pure Java version (3319L/21K).

1  
static <A> A evalWithTimeoutOrFail(int timeoutMS, F0<A> f) {
2  
  ret evalWithTimeoutOrException(timeoutMS, f);
3  
}
4  
5  
static <A> A evalWithTimeoutOrFail(double timeoutSeconds, F0<A> f) {
6  
  ret evalWithTimeoutOrException(timeoutSeconds, f);
7  
}
8  
9  
static <A> A evalWithTimeoutOrFail(int timeoutMS, IF0<A> f) {
10  
  ret evalWithTimeoutOrException(timeoutMS, f);
11  
}
12  
13  
static <A> A evalWithTimeoutOrFail(double timeoutSeconds, IF0<A> f) {
14  
  ret evalWithTimeoutOrException(timeoutSeconds, f);
15  
}
16  
17  
svoid evalWithTimeoutOrFail(int timeoutMS, Runnable r) {
18  
  evalWithTimeoutOrException(timeoutMS, runnableToF0(r));
19  
}
20  
21  
svoid evalWithTimeoutOrFail(double timeoutSeconds, Runnable r) {
22  
  evalWithTimeoutOrException(timeoutSeconds, runnableToF0(r));
23  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030071
Snippet name: evalWithTimeoutOrFail - preferred function to use now
Eternal ID of this version: #1030071/4
Text MD5: 11a712c30e71a9b8ebb97d713ae461de
Transpilation MD5: ffd56ce7424050997de6403a771374e9
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-11-04 13:11:42
Source code size: 745 bytes / 23 lines
Pitched / IR pitched: No / No
Views / Downloads: 230 / 300
Version history: 3 change(s)
Referenced in: [show references]