How many tasks are finished?

Report a typo

Write a method that counts how many Future objects in the list are finished.

Write a program in Kotlin
import java.util.*
import java.util.concurrent.*

fun howManyIsDone(items: List<Future<Int>>): Int {
// write your code here
}
___

Create a free account to access the full topic