summaryrefslogtreecommitdiff
path: root/odcsim-core
diff options
context:
space:
mode:
Diffstat (limited to 'odcsim-core')
-rw-r--r--odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorSystem.kt9
1 files changed, 9 insertions, 0 deletions
diff --git a/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorSystem.kt b/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorSystem.kt
index cbb80541..bae1fb74 100644
--- a/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorSystem.kt
+++ b/odcsim-core/src/main/kotlin/com/atlarge/odcsim/ActorSystem.kt
@@ -57,4 +57,13 @@ interface ActorSystem<in T : Any> : ActorRef<T> {
* @param after The delay after which the message should be received by the actor.
*/
fun send(msg: T, after: Duration = 0.1)
+
+ /**
+ * Terminates this actor system.
+ *
+ * This will stop the root actor and in turn will recursively stop all its child actors.
+ *
+ * This is an asynchronous operation.
+ */
+ fun terminate()
}