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.
Like the project? Make sure to leave a ⭐ on the repository!
repositories {
maven {
name 'concurrentia'
url 'https://raw.githubusercontent.com/Altiran/concurrentia/main/repo'
}
}
dependencies {
implementation 'com.altiran:concurrentia:1.0.3'
}
<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>
Pre-built JAR downloads are available from GitHub Releases.
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
});
}
}
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
}
}
}
Check out the Wiki tab. If you are still stuck, join our Discord server.
"Concurrentia" is licensed under the GNU General Public License v3.0. See LICENSE.md for details.