thomasvolk / alkali

Alkali is a small and simple actor library written in Kotlin.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alkali

Alkali is a small and simple actor library written in Kotlin.

Build Status

Install

repositories {
    maven { url 'https://jitpack.io' }
}

dependencies {
    compile 'com.github.thomasvolk:alkali:RELEASE_1_0_1-SNAPSHOT'
}

API

class HelloWorld : Actor() {
    override fun receive(message: Any) {
        println("Hello $message")
    }
}

val system = ActorSystemBuilder().build()
val actor = system.actor("helloWorld", HelloWorld::class)
actor send "World"

About

Alkali is a small and simple actor library written in Kotlin.

License:Apache License 2.0


Languages

Language:Kotlin 100.0%