com.fireflysource.common.coroutine.CoroutineExtension.kt Maven / Gradle / Ivy
package com.fireflysource.common.coroutine
import com.fireflysource.common.sys.Result
import kotlinx.coroutines.Job
import kotlinx.coroutines.future.asCompletableFuture
import java.util.concurrent.CompletableFuture
fun Job.asVoidFuture(): CompletableFuture {
return this.asCompletableFuture().thenCompose { Result.DONE }
}