actors: use stopFacet(turn) rather than stop(turn)
This commit is contained in:
parent
39dbe6fb63
commit
2901d3dbd8
|
@ -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"
|
||||||
|
|
|
@ -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) =
|
||||||
|
|
Loading…
Reference in New Issue