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

commonMain.com.littlekt.async.executors.kt Maven / Gradle / Ivy

There is a newer version: 0.11.0
Show newest version
package com.littlekt.async

import com.littlekt.Releasable

/**
 * @author Colton Daily
 * @date 1/10/2022
 */
expect class AsyncExecutor(maxConcurrent: Int) : Releasable {
    val maxConcurrent: Int

    fun  submit(action: () -> T): AsyncResult

    override fun release()
}

/**
 * @author Colton Daily
 * @date 1/10/2022
 */
expect class AsyncResult {
    val isDone: Boolean

    fun get(): T
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy