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

eu.kevin.api.extensions.CoroutinesExtension.kt Maven / Gradle / Ivy

The newest version!
package eu.kevin.api.extensions

import kotlinx.coroutines.DelicateCoroutinesApi
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.future.future
import java.util.concurrent.CompletableFuture


@OptIn(DelicateCoroutinesApi::class)
fun  suspendingToCompletableFuture(block: suspend () -> T): CompletableFuture = GlobalScope.future { block() }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy