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

io.wavebeans.execution.NamedThreadFactory.kt Maven / Gradle / Ivy

package io.wavebeans.execution

import java.util.concurrent.ThreadFactory

class NamedThreadFactory(val name: String) : ThreadFactory {
    private var c = 0
    override fun newThread(r: Runnable): Thread {
        return Thread(ThreadGroup(name), r, "$name-${c++}")
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy