Write a method that counts how many Future objects in the list are finished.
Callable and Future
How many tasks are finished?
Report a typo
Write a program in Kotlin
import java.util.*
import java.util.concurrent.*
fun howManyIsDone(items: List<Future<Int>>): Int {
// write your code here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.