Altiran / concurrentia

Simple and open-source multithreading utility for Java, Kotlin, etc.

Home Page:https://altiran.com/concurrentia

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Concurrentia

Introducing "Concurrentia" – an open-source Java and Kotlin library designed to streamline your multi-threading experience. Our solution simplifies concurrent execution, allowing you to effortlessly run multiple tasks simultaneously.

With "Concurrentia," there's no need for complex configurations. The library intelligently adapts to your system's capabilities, ensuring optimal performance without any manual intervention. However, should you require it, you have the option to adjust the maximum thread count to align with your specific requirements.

Experience the efficiency of parallel processing with "Concurrentia" – where simplicity meets professionalism, empowering you to focus on what truly matters: your code.

Discord Latest Release GitHub Forks GitHub Stars GitHub Watches Maintenance Maintainer Build Status WakaTime

Like the project? Make sure to leave a ⭐ on the repository!

Downloads

Gradle:
repositories {
    maven {
        name 'concurrentia'
        url 'https://raw.githubusercontent.com/Altiran/concurrentia/main/repo'
    }
}
dependencies {
    implementation 'com.altiran:concurrentia:1.0.3'
}
Maven:
<repository>
    <id>concurrentia</id>
    <url>https://raw.githubusercontent.com/Altiran/concurrentia/main/repo</url>
</repository>
<dependency>
    <groupId>com.altiran</groupId>
    <artifactId>concurrentia</artifactId>
    <version>1.0.3</version>
</dependency>
JAR:

Pre-built JAR downloads are available from GitHub Releases.

How to Use?

Java Example:
import com.altiran.concurrentia.Concurrentia;
import com.altiran.concurrentia.strategy.MultithreadingProtocol;

public class AsyncExample {
    private MultithreadingProtocol mt;
    private Concurrentia instance;

    public AsyncExample() {
        instance = new Concurrentia();
        mt = instance.getMultiThreading();
    }

    public void main() {
        mt.run(() -> {
            System.out.println("Hello World!"); // This will be executed in a separate thread asynchronously
        });
    }
}
Kotlin Example:
import com.altiran.concurrentia.Concurrentia
import com.altiran.concurrentia.strategy.MultithreadingProtocol

class AsyncExample {
    private val mt: MultithreadingProtocol
    private val instance = Concurrentia()

    init {
        mt = instance.multiThreading
    }

    fun main() {
        mt.run {
            println("Hello World!") // This will be executed in a separate thread asynchronously
        }
    }
}

I Need Help

Check out the Wiki tab. If you are still stuck, join our Discord server.

License

"Concurrentia" is licensed under the GNU General Public License v3.0. See LICENSE.md for details.

About

Simple and open-source multithreading utility for Java, Kotlin, etc.

https://altiran.com/concurrentia

License:GNU General Public License v3.0


Languages

Language:Kotlin 76.6%Language:Java 23.4%