Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ReadyTalk/avian
/ run
Method
run
test/Processes.java:9–16 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
7
final
Process p = Runtime.getRuntime().exec(
"sleep 10"
);
8
new
Thread() {
9
public
void
run() {
10
try {
11
Thread.sleep(100);
12
} catch(InterruptedException e) {
13
// ignore
14
}
15
p.destroy();
16
}
17
}.start();
18
try {
19
p.waitFor();
Callers
nothing calls this directly
Calls
2
sleep
Method · 0.95
destroy
Method · 0.45
Tested by
no test coverage detected