All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fireflysource.common.coroutine.CoroutineExtension.kt Maven / Gradle / Ivy

The newest version!
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 }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy