DurationUnit is not a typealias of TimeUnit anymore, use inWholeMilliseconds instead
See https://kotlinlang.org/docs/whatsnew16.html#stable-duration-api
This commit is contained in:
committed by
Space Team
parent
ab32f90117
commit
2f1147f224
+1
-1
@@ -60,7 +60,7 @@ class HostExecutor : Executor {
|
|||||||
process.errorStream.close()
|
process.errorStream.close()
|
||||||
})
|
})
|
||||||
|
|
||||||
if (!process.waitFor(request.timeout.toLong(TimeUnit.MILLISECONDS), TimeUnit.MILLISECONDS)) {
|
if (!process.waitFor(request.timeout.inWholeMilliseconds, TimeUnit.MILLISECONDS)) {
|
||||||
logger.warning("Timeout running $commandLine")
|
logger.warning("Timeout running $commandLine")
|
||||||
// Cancel every stream, no need to wait for them.
|
// Cancel every stream, no need to wait for them.
|
||||||
jobs.forEach {
|
jobs.forEach {
|
||||||
|
|||||||
Reference in New Issue
Block a user