actors
Actors
package orbit.carnival.actors
import orbit.client.actor.ActorWithStringKey
import orbit.client.actor.AbstractActor
interface Game : ActorWithStringKey {
suspend fun play(playerId: String): PlayedGameResult
}
class GameImpl() : AbstractActor(), Game {
{
override suspend fun play(playerId: String): PlayedGameResult {
... Game code
}
}Calling
Accessing the Proxy Factory
Runtime Model
Keys
Last updated
Was this helpful?