我在长时间会话中偶然发现了VI的一个功能,这是我想要使用的功能,但我在历史上找不到它.
如果我有一个以.property结尾的文件列表,如何在vi中打开这些文件的列表,以便它们显示为一个列表,我可以向下滚动并选择要编辑的正确文件?
我确实回顾了我的历史,但我有一百万个标签打开,但无法找到我是如何做到这一点的!
谢谢.
我正在尝试使用一些字符串创建一个非常简单的回调.IDE的代码意义在于对异常的未经检查的调用抱怨.任何人都可以给我一个解决方案吗?最后的想法是包装一个网络调用,以便返回承诺的结果,我可以根据需要添加其他功能.
import java.util.concurrent.*;
import java.util.function.BiConsumer;
import java.util.function.Function;
import java.util.function.Supplier;
public class FuturesTest {
public static void main(String[] args) throws Exception {
new FuturesTest().go();
}
private void go() throws ExecutionException, InterruptedException {
CompletableFuture.supplyAsync(new MakesANetworkCall())
.whenComplete(new BiConsumer<String, String>() {
@Override
public void accept(String result, String s) {
System.out.println(result.toString());
}
})
.exceptionally(new Function<Exception, Exception>() {
@Override
public Exception apply(Exception e) {
e.printStackTrace();
return e;
}
}
).thenApplyAsync(new Function<String, String>() {
@Override
public String apply(String o) {
System.out.println("Last action of all!");
return null;
} …Run Code Online (Sandbox Code Playgroud)