actors: use stopFacet(turn) rather than stop(turn)

This commit is contained in:
Emery Hemingway 2024-06-05 19:45:09 +03:00
parent 39dbe6fb63
commit 2901d3dbd8
2 changed files with 5 additions and 2 deletions

View File

@ -7,7 +7,7 @@
"bom-ref": "pkg:nim/syndicate", "bom-ref": "pkg:nim/syndicate",
"name": "syndicate", "name": "syndicate",
"description": "Syndicated actors for conversational concurrency", "description": "Syndicated actors for conversational concurrency",
"version": "20240605", "version": "20240606",
"authors": [ "authors": [
{ {
"name": "Emery Hemingway" "name": "Emery Hemingway"

View File

@ -696,7 +696,10 @@ proc stop*(turn: Turn, facet: Facet) =
turn.desc.actions.add act turn.desc.actions.add act
terminateFacet(turn) terminateFacet(turn)
proc stop*(turn: Turn) = proc stopFacet*(turn: Turn) = stop(turn, turn.facet)
## Stop the `Facet` currently active for this `Turn`.
proc stop*(turn: Turn) {.deprecated:"use stopFacet(turn)".} =
stop(turn, turn.facet) stop(turn, turn.facet)
proc stop*(facet: Facet) = proc stop*(facet: Facet) =