use Executors.callable() within lamda

后端 未结 0 994
不知归路
不知归路 2021-01-18 03:39

I have the following which works:

var tasks = tasks.stream(a -> (Callable>) () -> call(a)).collect(Collectors.toList());
<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题