Add terminate(Turn, Exception)

This commit is contained in:
Emery Hemingway 2024-03-27 17:47:06 +00:00
parent 8b79dce5ba
commit 2aee79662e
1 changed files with 3 additions and 0 deletions

View File

@ -622,6 +622,9 @@ proc terminateFacet*(facet; e: ref Exception) =
run(facet.actor.root) do (turn: var Turn):
terminateActor(turn, e)
proc terminate*(turn: var Turn; e: ref Exception) =
terminateActor(turn, e)
proc stop*(turn: var Turn, facet: Facet) =
queueEffect(turn, facet) do (turn: var Turn):
when tracing: