小编win*_*ndc的帖子

C#Task.ContinueWith()vs java?

在C#中,Task类有ContinueWith方法,当任务运行完成状态时,ContinueWith方法将被调用,而在JAVA中,是否有一些方法如ContinueWith

我知道番石榴listenablefuture,但它使用一个新的线程来等待'任务'完成,它是否等于C# ContinueWith

和JAVA 8 具有相同的效果,那么C#的区别是 什么?CompletableFuture whenCompleteContinueWith listenablefuture CompletableFuture

谢谢!

c# java guava completable-future

6
推荐指数
1
解决办法
502
查看次数

标签 统计

c# ×1

completable-future ×1

guava ×1

java ×1