summaryrefslogtreecommitdiff
path: root/odcsim-core/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'odcsim-core/src/main')
-rw-r--r--odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorContext.kt6
1 files changed, 3 insertions, 3 deletions
diff --git a/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorContext.kt b/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorContext.kt
index 5a16c4d1..4dea9897 100644
--- a/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorContext.kt
+++ b/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorContext.kt
@@ -43,11 +43,11 @@ interface ActorContext<in T : Any> {
/**
* Spawn a child actor from the given [Behavior] and with the specified name.
*
- * @param name The name of the child actor to spawn.
* @param behavior The behavior of the child actor to spawn.
+ * @param name The name of the child actor to spawn.
* @return A reference to the child that has/will be spawned.
*/
- fun <U : Any> spawn(name: String, behavior: Behavior<U>): ActorRef<U>
+ fun <U : Any> spawn(behavior: Behavior<U>, name: String): ActorRef<U>
/**
* Request the specified child actor to be stopped in asynchronous fashion.
@@ -55,5 +55,5 @@ interface ActorContext<in T : Any> {
* @param child The reference to the child actor to stop.
* @return `true` if the ref points to a child actor, otherwise `false`.
*/
- fun <U : Any> stop(child: ActorRef<U>): Boolean
+ fun stop(child: ActorRef<*>): Boolean
}