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",
|
||||
"name": "syndicate",
|
||||
"description": "Syndicated actors for conversational concurrency",
|
||||
"version": "20240605",
|
||||
"version": "20240606",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Emery Hemingway"
|
||||
|
|
|
@ -696,7 +696,10 @@ proc stop*(turn: Turn, facet: Facet) =
|
|||
turn.desc.actions.add act
|
||||
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)
|
||||
|
||||
proc stop*(facet: Facet) =
|
||||
|
|
Loading…
Reference in New Issue