mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 13:39:36 +07:00
15 lines
211 B
Java
15 lines
211 B
Java
import java.util.concurrent.CompletableFuture;
|
|
|
|
interface Test {
|
|
CompletableFuture<?> doWork();
|
|
}
|
|
|
|
class Worker {
|
|
Test test;
|
|
|
|
public void stuff() {
|
|
|
|
test.doWork()
|
|
.exceptionally(t -> null);
|
|
}
|
|
} |