mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-24 09:20:53 +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);
|
|
}
|
|
} |